GeneralPicTex y babel

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mateovasco
Posts: 10
Joined: Wed Mar 19, 2008 11:04 pm

PicTex y babel

Post by mateovasco »

Hi!

I've had problems using PicTex and Babel packages together... PicTex runs ok without babel, but with it, the error messages comes and the picture doesn't show... what's happening???

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: PicTex y babel

Post by Stefan Kottwitz »

Hi mateovasco,

welcome to the board!
Which error messages do you get? Without knowing any of the error messages it's hard to help.

Stefan
LaTeX.org admin
mateovasco
Posts: 10
Joined: Wed Mar 19, 2008 11:04 pm

PicTex y babel

Post by mateovasco »

Some author says that it's posible that the using of babel en pictex proce the error: ! No room for a new \dimen

But my list of errors is the following:

! Use of \!getlengths doesn't match its definition.
l.13 \setcoordinatesystem units <
1cm,1cm>
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.

! Use of \arrow doesn't match its definition.
\flecha ->\arrow <
6pt> [0.2, 0.6]
l.16 \flecha
from 0 -0.6 to 0 -1.2
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.



If I don't use Babel package, always works perfect.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: PicTex y babel

Post by Stefan Kottwitz »

Hi mateovasco,

could you please post example code that produces this error? I would test it on my system.

Stefan
LaTeX.org admin
mateovasco
Posts: 10
Joined: Wed Mar 19, 2008 11:04 pm

PicTex y babel

Post by mateovasco »

Hi Stefan... thanks for you answer...

The code without babel that works perfect:

\documentclass{article}
\DeclareFixedFont{\fiverm}{OT1}{cmr}{m}{n}{5pt}
\input{prepictex}
\input{pictex}
\input{postpictex}
\begin{document}
\newcommand{\flecha}{\arrow <6pt> [0.2, 0.6]}
Solucion:
\[\beginpicture
\setcoordinatesystem units <1cm,1cm>
\setplotarea x from 0 to 5, y from 0 to 0.1
\axis bottom ticks withvalues 0 1 2 3 $\cdots$ 18 / quantity 6 /
\flecha from 0 -0.6 to 0 -1.2
\putrectangle corners at 0 -0.6 and 4 -1.2
\put {\stack {$A=?$}} at 2 -0.9
\endpicture\]
\end{document}



And the code with babel package that shows a lot of errors:



\documentclass{article}
\usepackage[spanish]{babel}
\DeclareFixedFont{\fiverm}{OT1}{cmr}{m}{n}{5pt}
\input{prepictex}
\input{pictex}
\input{postpictex}
\begin{document}
\newcommand{\flecha}{\arrow <6pt> [0.2, 0.6]}
Solución:
\[\beginpicture
\setcoordinatesystem units <1cm,1cm>
\setplotarea x from 0 to 5, y from 0 to 0.1
\axis bottom ticks withvalues 0 1 2 3 $\cdots$ 18 / quantity 6 /
\flecha from 0 -0.6 to 0 -1.2
\putrectangle corners at 0 -0.6 and 4 -1.2
\put {\stack {$A=?$}} at 2 -0.9
\endpicture\]
\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

PicTex y babel

Post by Stefan Kottwitz »

Hi,

the last code shows that the spanish style of babel is used, its extra definitions are causing the problem. If you don't need the shorthands for quoting the problem would be solved by

Code: Select all

\deactivatequoting
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
in the preamble or at least before defining \flecha and starting that picture.

Stefan
LaTeX.org admin
mateovasco
Posts: 10
Joined: Wed Mar 19, 2008 11:04 pm

Re: PicTex y babel

Post by mateovasco »

I'm going to try you advice...

I contacted a person via e-mail and he told that babel changes some characters.

The problem became solved using \shorthandoff{<>} and \shorthandon{<>} before and after each PicTex graphic.

Thank you so much
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

PicTex y babel

Post by Stefan Kottwitz »

mateovasco wrote: The problem became solved using \shorthandoff{<>} and \shorthandon{<>} before and after each PicTex graphic.
Yes, that would solve it too. \deactivatequoting calls \shorthandoff{<>}. Here's some code from spanish.ldf for explanation:

Code: Select all

Code, edit and compile here:
\def\deactivatequoting{%
\shorthandoff{<>}%
\let\es@quoting\deactivatequoting}
\def\activatequoting{%
\shorthandon{<>}%
\let\es@quoting\activatequoting}%
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Therefore you could use both solutions.

Stefan
LaTeX.org admin
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

PicTex y babel

Post by Juanjo »

In the actual version of spanish, there is a package option to directly deactivate < and >:

Code: Select all

\usepackage[spanish,es-noquoting]{babel}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I would also suggest to any Spanish-speaking user of TeX to join the es-tex list, which, like this community, is quite active and helpful.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
98Lifshits-Landau
Posts: 1
Joined: Sun Oct 15, 2023 6:34 pm

PicTex y babel

Post by 98Lifshits-Landau »

mateovasco wrote: The problem became solved using \shorthandoff{<>} and \shorthandon{<>} before and after each PicTex graphic.
Thanks very much. These simples commands solutionated my problem with PicTeX and babel. In another opportunity i will use other solutions posted. :)
Post Reply