Graphics, Figures & TablesProblem with tikz, hebrew and texstudio

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Rustam
Posts: 22
Joined: Fri Nov 02, 2012 5:15 pm

Problem with tikz, hebrew and texstudio

Post by Rustam »

Good time of the day!
When I compile the attached file, the command \draw does nothing - i.e. it does not produces any drawing.

But when I remove

\usepackage{ucs} % unicode support
\usepackage[utf8x]{inputenc}

\usepackage[english,hebrew]{babel}


from the preamle, \draw command works fine.

I use TexStudio 2.10.2 and Miktex 2.9.
Attachments
try_tikz.tex
(1.6 KiB) Downloaded 429 times

Recommended reading 2024:

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

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

Rustam
Posts: 22
Joined: Fri Nov 02, 2012 5:15 pm

Problem with tikz, hebrew and texstudio

Post by Rustam »

Code: Select all

\L{
\tikzset{>=latex}
\begin{tikzpicture}
\draw[step = 0.2 cm, gray!30,very  thin] grid(16,24);
\draw[step = 2 cm, gray!60,  thin] grid(16,24);
\draw[->,very thick] (0,0) -- (16.3,0);
\draw[->,very thick] (0,0) -- (0,24.3);
\foreach \x in {0 , 2 ,..., 16 } 
\pgfmathparse{\x/2} 
\pgfmathprintnumberto{\pgfmathresult}{\roundednumberx}
\draw[thick] (\x cm, 0.1 cm) -- (\x cm, -0.1 cm) node[anchor=north] {$\roundednumberx$ m};
%-------------------------------------------------------
\foreach \y in {0 , 2 ,..., 24 } 
\pgfmathparse{\y/2} 
\pgfmathprintnumberto{\pgfmathresult}{\roundednumbery}
\draw[thick] (0.1 cm, \y cm ) -- (-0.1 cm, \y cm ) node[anchor=east] {$\roundednumbery$ m};
\end{tikzpicture}
}
The code should be enclosed in \L{}.
Post Reply