LaTeX forum ⇒ Graphics, Figures & TablesProblem with tikz, hebrew and texstudio Topic is solved

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

Problem with tikz, hebrew and texstudio  Topic is solved

Postby Rustam » Thu Oct 08, 2015 2:11 pm

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 189 times

Tags:

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

Postby Rustam » Sat Oct 10, 2015 7:24 pm

  1. \L{
  2. \tikzset{>=latex}
  3. \begin{tikzpicture}
  4. \draw[step = 0.2 cm, gray!30,very thin] grid(16,24);
  5. \draw[step = 2 cm, gray!60, thin] grid(16,24);
  6. \draw[->,very thick] (0,0) -- (16.3,0);
  7. \draw[->,very thick] (0,0) -- (0,24.3);
  8. \foreach \x in {0 , 2 ,..., 16 }
  9. \pgfmathparse{\x/2}
  10. \pgfmathprintnumberto{\pgfmathresult}{\roundednumberx}
  11. \draw[thick] (\x cm, 0.1 cm) -- (\x cm, -0.1 cm) node[anchor=north] {$\roundednumberx$ m};
  12. %-------------------------------------------------------
  13. \foreach \y in {0 , 2 ,..., 24 }
  14. \pgfmathparse{\y/2}
  15. \pgfmathprintnumberto{\pgfmathresult}{\roundednumbery}
  16. \draw[thick] (0.1 cm, \y cm ) -- (-0.1 cm, \y cm ) node[anchor=east] {$\roundednumbery$ m};
  17. \end{tikzpicture}
  18. }


The code should be enclosed in \L{}.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 5 guests