174,139 reputation
11458809
bio website dpcarlisle.blogspot.com
location Oxford, United Kingdom
age 52
visits member for 3 years, 7 months
seen 1 hour ago

I have been using LaTeX since 1987 or thereabouts and have been on the LaTeX3 team since before we released LaTeX2e. I'm currently somewhat inactive in the LaTeX project but show up in related fields, I'm an editor of the MathML spec for example.

I am employed by NAG ltd, but any opinions expressed here are personal.


7h
comment An image side by side in latex
That suggests you have a missing { in the caption argument the fragment you posted looks OK but it isnt the code that made that error. Please always post complete small documents that reproduce the problem.
1d
comment How to use directory name as a variable?
\newcommand\imagdeir{/directory-01} then \includegraphics[width=0.5\textwidth]{\imgdir/smooth-pop.pdf}}
1d
comment Problem with ExplSyntax
also you have defined \newcommand{\delim}[3][lr]{ so \delim has one optional argument and 2 mandatory ones so in \delim[lr][r the optional argument is lr #2 is [ and #3 is r I suspect you want to use xparse declarations to define a command with 2 optional arguments?
1d
comment Problem with ExplSyntax
You haven't loaded the expl3 package (xparse) so the commands are not defined
1d
comment How can I define a custom class of keywords in listings?
If you want this in the main document text (not in listings) then it will be much more robust to not do it in tex and simply use your editor to add \keyword{} around a, b, and c and then define \keyword to be a suitable \textcolor{}{..}
1d
comment Equivalent color for \colorbox{gray} as for \cellcolor[gray]{0.8}
\colorbox{\color[gray]{0.8}}{text} no! \colorbox[gray]{0.8}{text} \colorbox is like \cellcolor and just passes its arguments to \color
1d
comment Equivalent color for \colorbox{gray} as for \cellcolor[gray]{0.8}
@JohnnyB well I wrote that code and I can promise you that neither \colorbox nor \cellcolor do anything with colour values at all, both just set things up then call \color with the supplied values.
1d
comment How can I avoid blank spaces when I insert a pdf figure?
@user49271 see picture added to answer
1d
comment How can I avoid blank spaces when I insert a pdf figure?
@user49271 The figure may come on page 2 (impossible to tell as you have not provided a working example) but it will not move if entered as above so it will be between as illustrated in this example and For the same reason where the page break happens depends on code that you have not shown, so I can not comment.
1d
comment How can I avoid blank spaces when I insert a pdf figure?
@user49271 "it doesn't work" isn't a useful comment: It does what it is designed to do if used correctly. If it didn't do what you want then you need to say (a) what it did (b) what you want and (c) what exact document you used. (unless you mean the error about the extra } in the initial version of this post :-)
1d
comment How can we swap columns in two-column regime preserving hyperlinks?
shouldn't the built in \beginR \endR primitives swap the columns without you having to move columns "by hand" ?
1d
comment Fitting equation inside a column
The & at the end of the first two rows are spurious which is why the spacing of the brackets is wrong with much more space before ) than after (. I would get rid of the spurious space before ) the scale to (say) .8\columnwidth so that the equation number fits on same line
1d
comment How can I change the normal font size of my sections?
use \documentclass[12pt]{article} will make the text larger
1d
comment Including graphics for both DVI and PNG
@BertjanBroeksema you could use sed or perl or whatever to just delete all lines of the text file after "References" or whatever your title is.
1d
comment Including graphics for both DVI and PNG
@BertjanBroeksema OK:-) although I'd be surely tempted to tell anyone asking for a word count to go away and not be silly, I understand that that's always not a good idea if trying to get things published or theses accepted;-) (you could try pdftotext on the pdf rather than have dvi just for that)
1d
comment Including graphics for both DVI and PNG
@BertjanBroeksema It seems a strange request, but anyway the ifpdf package allows you to test for pdflatex and do different things depending.
2d
comment Some table references sometimes not working
@mercergeoinfo the out of floats error is an error (it is not out of memory in any real sense) and even if the error message isn't clear to the questioner it is a lot clearer for anyone trying to help than a description of the output without mention that there was an error.
2d
comment Defining some newcommand with \href, Problems of ##
@egreg no I went home:-) (I thought hyperref rescanned it, I guess not:-)
2d
comment Defining some newcommand with \href, Problems of ##
you need ## for the # and #1 for the argument, so 3 #
2d
comment Adjust margins for long table on a landscape page
@Pietair try with \addtolength\textwidth{5cm}\addtolength\oddsidemargin{-2.5cm}