Graphics, Figures & Tablesdraw image of functions in horizontal

Information and discussion about graphics, figures & tables in LaTeX documents.
jadhavboys
Posts: 26
Joined: Tue Feb 28, 2012 2:31 pm

Re: draw image of functions in horizontal

Post by jadhavboys »

yes but will you please tell me how to install it?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

jadhavboys
Posts: 26
Joined: Tue Feb 28, 2012 2:31 pm

Re: draw image of functions in horizontal

Post by jadhavboys »

yes but will you please tell me how to install it in latex?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: draw image of functions in horizontal

Post by Johannes_B »

You did install a TeX distribution in the past, a package manager was installed as well. This package manager will install the package for you and also update other packages. Which TeX distribution is installed on your system? Please show us the first few lines of your log-file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
jadhavboys
Posts: 26
Joined: Tue Feb 28, 2012 2:31 pm

Re: draw image of functions in horizontal

Post by jadhavboys »

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2014.1.30) 8 MAY 2015 15:53
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**arrow_for_two_images.tex
(./arrow_for_two_images.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 2 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2009/07/02 v2.20.1
\linespacing=\dimen102
\normalparindent=\dimen103
\normaltopskip=\skip41
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2013/01/14 v2.14 AMS math features
\@mathmargin=\skip42
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

draw image of functions in horizontal

Post by Johannes_B »

Oy, the debian repositories of TeX Live are known to be stable, or in other words, a bit outdated. You can try update using apt-get, but i fear the reps won't hold the more recent stuff.

Manually installing the package might be hard as well, as it requires a pretty recent LaTeX3 kernel.

You last resort would be to remove the debian TL and install a vanilla TeX Live from TUG directly.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
jadhavboys
Posts: 26
Joined: Tue Feb 28, 2012 2:31 pm

Re: draw image of functions in horizontal

Post by jadhavboys »

please tell me what i have to do in that web site :?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

draw image of functions in horizontal

Post by Stefan Kottwitz »

Here is another idea without the hobby package, just using angles to start and to end paths. The trick is to use an outgoing path which is diametral to an ingoing path for each control point.

Code: Select all

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \draw (0,-2)
    to [out=180, in=270] (-1.5,-1)
    to [out= 90, in= 30]    (-2,0)
    to [out=210, in=270]    (-3,1)
    to [out= 90, in=180]     (0,1)
    to [out=  0, in= 10]     (1,0)
    to [out=190, in=  0]    (0,-2);
\end{tikzpicture}
\end{document}
transform-circle.png
transform-circle.png (11.04 KiB) Viewed 4467 times
Stefan
LaTeX.org admin
Post Reply