aqqaluk / doconce

Automatically exported from code.google.com/p/doconce
0 stars 0 forks source link

"scale" option problem #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by italo...@gmail.com on 11 Jul 2013 at 5:11

GoogleCodeExporter commented 8 years ago
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!

Original comment by h...@simula.no on 13 Jul 2013 at 7:16