The Asymptote graph consists of but a straight line and an x- and a y-axis. It is enclosed in the figure environment which includes a caption as well. The LaTeX file is called demo.tex; a link is included below.
There are two problems:
The caption is lost in the pdf written.
There is a "float too large" detected by LaTeX
I have tried to use \protect without success. As to the second problem I am completely without ideas.
The we and wp manages the write-permissions. The tse is my editor. The first call to acrobat in fact shows the caption correctly. The second acrobat call (after the asy demo-.asy) shows the line and the two axes but without the caption.
Does anyone have a suggestion about what error(s) I commit?
Ch
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is high probability you have no mistake in your code. There is some problem with dvips around since the last upgrade of MikTeX, which pushes the graphics downwards - see my post from 2 days ago. To be sure that your case is the same, pls post your code here.
Marek
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The Asymptote graph consists of but a straight line and an x- and a y-axis. It is enclosed in the figure environment which includes a caption as well. The LaTeX file is called demo.tex; a link is included below.
There are two problems:
I have tried to use
\protect
without success. As to the second problem I am completely without ideas.All files involved (including the log-file) are found in the catalogue pointed to by this link:
https://1drv.ms/f/s!AvIP6x1zKSLzhWO_fqAYRZdUdSIX
The handling of the files was by means of a (Windows) batch file:
The we and wp manages the write-permissions. The tse is my editor. The first call to acrobat in fact shows the caption correctly. The second acrobat call (after the asy demo-.asy) shows the line and the two axes but without the caption.
Does anyone have a suggestion about what error(s) I commit?
Ch
Hi gustaf
There is high probability you have no mistake in your code. There is some problem with
dvips
around since the last upgrade of MikTeX, which pushes the graphics downwards - see my post from 2 days ago. To be sure that your case is the same, pls post your code here.Marek
Marek,
You should find the file demo.tex following the link that is in the post. Anyway, here it is:
Christer
On my system only upper part of your picture is visible.
Pls try this code from the Asymptote manual (first paragraph of the section 3.4):
Don't embed it into a latex code, but compile it straight as is. Then comment out all
label
commands and try again.Last edit: Marek Szwabowicz 2017-01-04
With Bowman's latest version of plain.asy installed (see above) the figure environment now includes the caption as well.
Thank you for the help.
Christer