2,498 reputation
416
bio website
location
age
visits member for 2 years, 3 months
seen 8 hours ago

1d
comment lstlistings: framed code
@davidg non-of the solutions below (with auto-adjustment of width) work for verbatim that extends over one page. The text is chopped off if it is longer than one page.
1d
comment lstlistings: framed code
fyi, this solution does not work, as it chops off any verbatim if it is over one page long.
1d
comment lstlistings: framed code
fyi, this solution does not work, as it chops off any verbatim if it is over one page long.
1d
accepted why first line is missing using fancybox BVerbatim?
1d
comment why first line is missing using fancybox BVerbatim?
Ok, will look at listing. But this all works fine with \begin{Verbatim}[frame=single]. I do not want to include text from files. The verbatim text is already inside the latex document. Only reason I was looking at fancybox here, is to make the box fit tight around the text, which \begin{Verbatim}[frame=single] does not do and has no option to do that. I assumed listing works only with reading text from files, but will check on it now. As long as I can get a frame that fits tight around the text, and does not get chopped at the end of the page, then I can use listing instead. Thanks.
1d
comment why first line is missing using fancybox BVerbatim?
thanks. But verbatimbox has the same issue I wrote about in my comment to Herbert above. For verbatim that is too long, the box gets chopped off and I lose verbatim text if the is longer than one page. This problem do not happen with \begin{Verbatim}[frame=single]
1d
comment why first line is missing using fancybox BVerbatim?
screen shot !Mathematica graphics
1d
comment why first line is missing using fancybox BVerbatim?
fyi, I have found another issue with this, which I am not able to resolve. May be you can. What happens is this: If the verbatim text is too long, the fbox does not overflow to the next page, but gets chopped off at the end of the page, and any remaining verbatim text is lost. i.e. if I just use \begin{Verbatim}{frame=single}... this problem do not happen, and the frame continue to next page, for as many pages as needed for large verbatim text. But not with the above. I'll post screen show below to show the difference.
2d
comment why first line is missing using fancybox BVerbatim?
Thanks, but actually all the options being passed via [frame=single] and others like it, has no effect. Actually without [frame=single] it still works as is. Another thing I tried is \begin{SaveVerbatim}[frame=single,framerule=2pt]... and the line thickness did not change. I think all these options do not work for some reason like they do with normal \begin{Verbatim}[frame=single,framerule=2pt,samepage...] and I can't figure out why. I wish they did.
2d
asked why first line is missing using fancybox BVerbatim?
Aug
20
revised tex4ht removes spaces in array column when including a package even if the package is not used
added more packages found
Aug
20
comment tex4ht removes spaces in array column when including a package even if the package is not used
@cgnieder Why do you say You know that both tabularx and siunitx load array ? How did you know I know? or any user should know this? I am a newbie and just report what I see. I do not look under the cover to see what happens.
Aug
20
revised tex4ht removes spaces in array column when including a package even if the package is not used
added more example
Aug
20
comment tex4ht removes spaces in array column when including a package even if the package is not used
@michal.h21 I know the spacing is correct outside tabular. But this is an example from latex document. I use tabular to arrange commands on left side and output on the right side. So I use a table for this as it is a simple way to do this. It works ok with pdflatex. The output or the input can be latex code so I put it there inside the tabular.
Aug
20
revised tex4ht removes spaces in array column when including a package even if the package is not used
added another problem
Aug
20
asked tex4ht removes spaces in array column when including a package even if the package is not used
Aug
13
comment Anyone willing to share his/her custom dark theme for TeXstudio?
You must have good eyes. Good for you. But as you can see, all popular sites have white background and dark text vs. the other way around, since it is easier for the eyes for most people. May be age has something to do with it, I do not know.
Aug
12
comment Anyone willing to share his/her custom dark theme for TeXstudio?
dark themes are not good for the eyes. Makes double vision and can affect eye health. Best is white background or some bright close to white with dark/black for text. Just like here on this forum.
Aug
12
comment Setting image size using em units instead of pt
What I mean is that the solution above works well when using \includegraphics[width=0.7\paperwidth]{d1.png} but when using \includegraphics[scale=0.7]{d1.png} then it should leave this alone and not apply the 0.7 above as the width. For some reason this causes the image to come out too small in HTML. (btw, this solution is really useful and should be actually integrated in Tex4ht itself.)
Aug
12
comment Setting image size using em units instead of pt
There are still some issues with the solution. The main one is that it picks the scale as width. I compiled \includegraphics[scale=0.7]{d1.png} and it seems to have took the 0.7 above as the width, so the resulting image in HTML was very small, with "width:4.21573em;" I did not really want this solution to affect scale since I have not yet changed all my documents to use width and now all my images are coming up very small in HTML. Another issue that should be mentioned in the solution above, is that this works for 12pt only due to the extra decimal point (per our chat). Thank you.