Search found 15 matches

by EmilioLazo
Wed May 08, 2013 5:14 pm
Forum: Graphics, Figures & Tables
Topic: Image can't be included with twice \newcommand expansion
Replies: 3
Views: 3660

Re: Image can't be included with twice \newcommand expansion

But what is happening anyway?

Why the difference in the behaviour between first/third image inclusion and second?

(pdf)latex says that it can't find 'example-grid-100x100bp.jpg', the same file of the other two cases.
by EmilioLazo
Wed May 08, 2013 8:31 am
Forum: Graphics, Figures & Tables
Topic: Image can't be included with twice \newcommand expansion
Replies: 3
Views: 3660

Image can't be included with twice \newcommand expansion

Hi.

In the following code:

\documentclass{article}
\newcommand{\test}{example-grid-100x100bp.jpg}
\newcommand{\testx}{\test}
\let\testxx\test
\usepackage{graphicx}
\begin{document}
test \includegraphics{\test}
testx \includegraphics{\testx}
testxx \includegraphics{\testxx}
\end{document}


Both ...
by EmilioLazo
Sat Mar 30, 2013 11:19 pm
Forum: General
Topic: Problem using conditionals inside tabular & changing columns
Replies: 0
Views: 3110

Problem using conditionals inside tabular & changing columns

Hello!

I wrote this code to expose the issue I'm facing:


\documentclass[test]{article}

\makeatletter
\DeclareOption{test}{\@testtrue}
\ProcessOptions
\newcommand{\Item}{\if@test t&t&t&t \else 21&22&23&24 \fi}
\makeatother

\begin{document}
\begin{tabular}{cccc}
11 & 12 & 13 & 14 \\
\Item ...
by EmilioLazo
Tue Mar 26, 2013 11:16 pm
Forum: General
Topic: Number Output inside Info for new Class fails
Replies: 9
Views: 7958

Number Output inside Info for new Class fails

Ok, here's a way that meets the requirements you've specified. The main point here is that the formatted result is stored in a macro that can be expanded. I've used expl3 (the l3kernel programming layer) for convenience: ...

Hi Clemens!

Really thank you for your help, and your code! but I've ...
by EmilioLazo
Sat Mar 23, 2013 3:03 am
Forum: General
Topic: Number Output inside Info for new Class fails
Replies: 9
Views: 7958

Number Output inside Info for new Class fails

If you would tell us which format you want (rounded? decimal comma instead of point?) and which different forms the input can have maybe someone can come up with something. Until now it is still rather vague...

Regards

You mean using a different way of rouding/formatting the number rather than ...
by EmilioLazo
Fri Mar 22, 2013 10:31 pm
Forum: General
Topic: Number Output inside Info for new Class fails
Replies: 9
Views: 7958

Number Output inside Info for new Class fails

When you say that \numprint is not expandable means that what I want is not possible with \numprint?

Exactly. I don't understand why you want \numprint in \ClassInfo in the first place but you have to find another way.

Regards

I want \numprint 's in the log file because I'll use grep to find ...
by EmilioLazo
Fri Mar 22, 2013 9:26 pm
Forum: General
Topic: Number Output inside Info for new Class fails
Replies: 9
Views: 7958

Number Output inside Info for new Class fails

Hi Clemens,

For example:


\documentclass{article}

\usepackage{numprint}
\npthousandsep{.}
\newcommand{\Total}{1234}

\begin{document}

\noindent Total: \Total \\
Total with numprint: \numprint{\Total}

\ClassInfo{article}{The total is: \numprint{\Total}}

\end{document}


Log file reads ...
by EmilioLazo
Fri Mar 22, 2013 6:17 pm
Forum: General
Topic: Number Output inside Info for new Class fails
Replies: 9
Views: 7958

Number Output inside Info for new Class fails

Hi!

I have a macro named \Total which holds a number that is the result of some math operations with package fp-upn from fp . I want to show the output of \numprint{\Total} from numprint in a \ClassWarning or \ClassInfo to be shown in the log. (I'm making a class).

If I put \ClassInfo{factura ...
by EmilioLazo
Sat Apr 21, 2012 5:15 pm
Forum: Text Formatting
Topic: No italics with Linux Libertine?
Replies: 9
Views: 8207

No italics with Linux Libertine?

I do have a similar issue after Debian did upgrade TexLive 2009 to TexLive 2011.

Slanted fonts appears as normal fonts in XeLaTeX (regardless the font I use) and some font shapes are not available in xelatex and also in pdflatex.

After upgrading to version 2011 of Debian's TexLive, some warnings ...
by EmilioLazo
Mon Mar 19, 2012 7:23 pm
Forum: Text Formatting
Topic: fancybox | Two adjacent framed Boxes with same Height
Replies: 1
Views: 3563

fancybox | Two adjacent framed Boxes with same Height

Hello!

I'm trying to achieve having two cells the same height in order to frame them with an ovalbox but don't know how to do this. I did try with an ovalbox outside of a parbox (what I call "first try"), and the same but with a tabular outside (second try). Also, following a trick found in [1] I ...