Reputation
4,243
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
10 27
Newest
 Nice Answer
Impact
~71k people reached

2d
comment why is adding `breqn` package breaks `etoolbox` command?
thanks. Initial test shows it works but generates what seems to be harmless error from lualatex but no such message from pdflatex. When I compiled using lualatex -shell-esc foo.tex I see message: (/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/ifluatex.sty))) (./foo2.aux)id: invalid option -- '.' Try 'id --help' for more information. but when I look at the pdf file, I see the group id there ! I need to test this more on my main file which does something more complicated. thanks
2d
comment how to use output of bashful splice to assign it to a Latex counter?
@DavidCarlisle Ok, thanks. I am switching to egrep \shellcommand which works! but it has problem when I use breqn package, which I must use. I posted separate question on that. Latex is so hard.
2d
comment how to use output of bashful splice to assign it to a Latex counter?
@DavidCarlisle that was just an example. I am using the bash command to obtain different information. But using id -g for illustrations.
2d
comment why is adding `breqn` package breaks `etoolbox` command?
@Bort I do not undertand. The command works fine when breq package is not included. This is a standard linux command: id -g gives me 1000. The error in the command was due to using the breq package.
2d
comment How to use bashful package from inside etoolbox list processing?
thanks, did not know about the \@@input, looks very useful.
2d
comment Suggest a “nice” font family for my basic LaTeX template (text and math)
I am switching all my files to use kpfonts. Very nice font!
Jul
27
comment How to check that image has valid size before `\includegraphics` is called?
I thought it will go over multiple pages, and I just needed to check. I had no idea how it will work with such large image. pdflatex said pdfTeX warning: pdflatex (file ./image.pdf): PDF inclusion: multiple pdfs with page group included in a single page so this is OK. I wanted it to fit on one page. thanks.
Jul
27
comment How to check that image has valid size before `\includegraphics` is called?
I just tried your solution and the image does show on only ONE page, which is great! that is what I want.
Jul
27
comment How to check that image has valid size before `\includegraphics` is called?
Thanks. There are few images out of over 55,000 images that have this problem. Most are small and cause no problem. Also pdf allows zooming so one can zoom to see the image if needed. The point is not to break the compilation each time new images are generated. So your solutions allows me to compile the pdf and not have to worry about breaking the build. But I would need it to fit to one page as before, even if it become too smal to see. But will try and see.
Jul
26
comment Dimension too large. error from pdflatex when using \includegraphics
The issue not for latex to "correct" anything. The issue is to provide the means for the user to check if they want to load the image or not. This is called defensive programming. I should be able to write a Latex document that handle any size images by adding checks. If the image is too large, I will not load it. Now my Latex document is robust and will compile all the time. I can replace the image by a message saying image too large to include. Any way, I opened new question on this topic so this discussion may be belong to there.
Jul
26
comment Dimension too large. error from pdflatex when using \includegraphics
These are Mathematica graphics, exported to pdf using Mathematica Export. From design point of view, it is better to have the program trying to load the pdf to check if it can do it not, than trying to figure how to make Mathematica only export pdf files that Latex can load. May be later I want to use these pdf files by another program than can read them? Also it is hard to map Mathematica graphics sizes to what will show up as in pdf after export.
Jul
26
comment Dimension too large. error from pdflatex when using \includegraphics
This is all automated. I need a way in Latex to check if the image can be loaded correctly before issuing the includegraphics command so that my build does not fail in the middle. I can't open each image manually and check its size one by one.
Jul
26
comment Dimension too large. error from pdflatex when using \includegraphics
Thanks. Is there a way to check for this in Latex before loading the image? I have thousands of such images, generated automatically and I do not know what size they will come out as. I need a way to check then if the image is too large and not include, else the build will fail. Most the images are small, but few, due to the computation, can show up this large.
Jul
26
comment Dimension too large. error from pdflatex when using \includegraphics
@ChristianHupfer I have thousands of such pdf image files created by Mathematica. I use Mathematica Export command. Few of them are too large and give such error. The question here is., why pdflatex gives an error? Is there a limit somewhere in pdf that one should know about?
Jul
24
comment Can a command be defined to have key=value in it?
@cfr I do not know what "expansion" exactly mean in Latex world. Is it like Latex is trying to evaluate the command before it is applied to the \includegraphics part? something like this may be. I do not know, that is why I am asking.
Jul
23
comment Convert LaTeX to SymPy format
This is like 5 years project for 5 people to do right. You are basically asking for a compiler. Translating one language to another.
Jul
23
comment cnxml to LaTeX conversion
since the web site cnx.org says cnxml is "CNXML is a lightweight XML markup language for marking up educational content.", then may be XML to latex is what is needed? someone-knows-a-xml2tex-converter
Jul
23
comment how to define newcommand that takes []{} as arguments and not {}{}?
Note that you can probably just use humm... but this does not really work for me? I need new command in order to do the ifdefined\...\else...\fi logic in it. I am using your first method in your answer, and it is working well as it is. thanks again.
Jul
22
comment how to define newcommand that takes []{} as arguments and not {}{}?
great! thanks, works very well.
Jul
20
comment Getting specific row/column values from a csv file to use in text, figures or table cells
You are welcome. But I am confused about what you said I prefer a solution that does not make me move from pdflatex. Can I ask what is the difference for you? I used to use pdflatex, and I now use lualatex. Nothing else changes. I simply changed my Makefile to call lualatex instead. Both make pdf and both work with tex4ht. May be there something that pdflatex does that lualatex can't do? if so, I have not seen it in my files.