2,549 reputation
417
bio website
location
age
visits member for 2 years, 4 months
seen 8 hours ago

Sep
13
comment How to automatically include several text documents into a LaTeX document?
Will this work on Linux and the mac also?
Sep
11
comment how to make fbox produce similar result to boxed from amsmath when used inside display math?
Your solution worked very well also. SW is able to read the latex file ok and display frame on screen since the internal code was not changed and kept as is. Only preamble changed which is ok.
Sep
11
comment how to make fbox produce similar result to boxed from amsmath when used inside display math?
THanks again, but it does not work on the code generated. You removed the $$ from the code that was there. Here is MWE again. I get errors compiling this: \documentclass[11pt]{article}% \usepackage{amsmath} \setlength{\fboxsep}{10pt} \LetLtxMacro\LaTeXStandardFBox\fbox \renewcommand{\fbox}[1]{% \[% \LaTeXStandardFBox{% \ensuremath{\displaystyle{#1}}% }% End of \fbox \]% }% \begin{document} %can't modify code below \[ \fbox{$x_1\left( t\right) =x_{20}\frac{t}{1+t^2}+\frac{1}{\sqrt{\left( 1+t^2\right) }}$}% \] \end{document} if you need clarifications, I am in chat.
Sep
11
comment how to make fbox produce similar result to boxed from amsmath when used inside display math?
SW can be removed completely out of the picture. The problem is this: Is there a way to make fbox behave the same as boxed without modifying the code itself, but only using the preamble? That is all. I can add any code to the preamble, but can't edit the code itself or add extra code inside.
Sep
11
comment how to make fbox produce similar result to boxed from amsmath when used inside display math?
I can add \mathfbox to preamble. But this is not the issue. How would I tell SW to use it? I click on a button to add frame around equation. SW generates \fbox. Now what? I can't tell SW to generate code that uses \mathfbox instead. Is there a way to redefine fbox itself to make it do \ensuremath{\displaystyle ? So I do not have to edit the code. Your answer is useful and I can use it when writing direct Latex. But I am using SW at this moment.
Sep
11
comment how to make fbox produce similar result to boxed from amsmath when used inside display math?
Thanks again. But I do not think I explained my problem well. I can't add \mathfbox from the GUI. So I have no way to use it when using SW. The issue is that SW generates the fbox and I can only add code to preamble to fix things, but can't edit the code or add code inside the document, since SW will not understand it if it does not supports it in the GUI. The fix has to be to do it all in the preamble only. This way I can still use the GUI but get the correct output when I compile. I hope this explain the problem better.
Sep
11
comment how to make fbox produce similar result to boxed from amsmath when used inside display math?
Thanks. But is there a way to write some macro in preamble to do this? i.e. without having to edit the generated code itself? I can't edit the code generated each time and fix this by hand as I mentioned I use SW GUI to generate this code and it is not practical to edit this each time I make changes. Also SW does not understand this new code any more and so it does not display correctly on the screen any more. Here is screen shot from SW to explain the issue !Mathematica graphics
Aug
27
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.
Aug
27
comment lstlistings: framed code
fyi, this solution does not work, as it chops off any verbatim if it is over one page long.
Aug
27
comment lstlistings: framed code
fyi, this solution does not work, as it chops off any verbatim if it is over one page long.
Aug
27
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.
Aug
27
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]
Aug
27
comment why first line is missing using fancybox BVerbatim?
screen shot !Mathematica graphics
Aug
27
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.
Aug
27
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.
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
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
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.)