Issue 2 in doconce: "scale" option problem

1 view
Skip to first unread message

doc...@googlecode.com

unread,
Jul 11, 2013, 1:11:05 PM7/11/13
to docon...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2 by italo...@gmail.com: "scale" option problem
http://code.google.com/p/doconce/issues/detail?id=2

What steps will reproduce the problem?

1. Include a figure for generating FORMAT=pdflatex in a <doconce file>:

FORMAT:[<figure file>, scale=50%] <legend>

2. Generate pdflatex:

doconce format pdflatex <doconce file>

3. Generated file does not scale.

What is the expected output?

\centerline{\includegraphics[width=0.5\linewidth]{<figure file>}}

What do you see instead?

\centerline{\includegraphics[width=0.9\linewidth]{<figure file>}}

What version of the product are you using? On what operating system?

doconce 0.7.3

Looking at the source code, I find "frac" option. It worked for me:

FORMAT:[<figure file>, frac=0.5] <legend>

Is this the right form to write a doconce file?

Thanks.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

doc...@googlecode.com

unread,
Jul 13, 2013, 3:17:10 AM7/13/13
to docon...@googlegroups.com

Comment #1 on issue 2 by h...@simula.no: "scale" option problem
http://code.google.com/p/doconce/issues/detail?id=2

Yes!!

Unfortunately, the scale option is an old name, yet still appearing in the
FIGURE specification in the documentation. It was replaced by frac, which
is used for LaTeX output (width and height are used for HTML formats). The
documentation is upated (and extended) accordingly. width and height are
absolute pixel sizes, while frac is the fraction of the text width used for
the image.

Thanks for pointing out this problem!
Reply all
Reply to author
Forward
0 new messages