How can I create PDFs using LaTeX?

  • LaTeX
  • Thread starter Dustinsfl
  • Start date
  • Tags
    Latex
In summary, Latex doesn't have a \arctanh. That probably means there is no sinh, cosh, etc versions as well.
  • #1
Dustinsfl
2,281
5
This works when making your own pdf files. On site, I don't know. If you can set it in the background of Math Jax, then it would be good here too.

Latex doesn't have a \arctanh. That probably means there is no sinh, cosh, etc versions as well.

I only know for a fact about arctanh because I use that one a lot.

Before you start you document, add

Code:
\DeclareMathOperator\arctanh{arctanh}

Now \arctanh works.
 
Physics news on Phys.org
  • #2
Latex tip #3 references itemize cases

Have you ever done

Code:
\begin{enumerate}[{Case} 1:]
\item
blah
\item
blah
...

and then wanted to reference to one of your itemized cases? Well I have and here is how you do this. Add the following in your preamble before you start your document.

Code:
%  phantom sections for itemize linking use hyperref and name                       
\AtBeginEnvironment{itemize}{\apptocmd{\item}{\phantomsection}{}{
    \errmessage{couldn't patch item}}}

Now you can do this

Code:
\item
\label{case1}

some time later

See Case~\ref{case1}
 
  • #3
Latex tip #4 referencing figure but the jump is never center on the figure

Have you ever referenced a figure, and when you click the hyper link, it jumps to the caption and not the figure?

Well if you haven't adjusted the caption package or added hypcap, this is what happens.

Your options to correct this are:

I recommend not using the caption package though see tip 5.
You can load the package caption. The default setting is hypcap=true.

If you don't load the package caption, you can load the package hypcap. Load this after hyperref
\usepackage[all]{hypcap}
 
  • #4
Latex tip #5 don't use the caption package

Instead of the caption package use float and subfig.

For subfig, you want to set

\usepackage[caption = false]{subfig}

This will be valuable to you if you ever use the IEEEtran two column class.
 
  • #5
Re: Latex tip #2

Or, if you prefer the function inverse notation, you could go

Code:
\DeclareMathOperator\arctanh{tanh^{-1}}
 
  • #6
Re: Latex tip #2

Ackbach said:
Or, if you prefer the function inverse notation, you could go

Code:
\DeclareMathOperator\arctanh{tanh^{-1}}

You wouldn't need to define that one. Just do \tanh^{-1} and you have it.
 
  • #7
Latex tip #6 the use of dollar signs

This is for preparing your own pdfs. In $\LaTeX3$, I believe the use of dollar signs will be removed since they are a $\TeX$ delimiter.
If you have ever had a compiling error and the information didn't help or make sense, it may be because you are using dollar delimiters over the $\LaTeX$ delimiters unless you already use the appropriate delimiters.

In $\LaTeX$, you should never the dollar sign or double dollar sign.

For inline math, you should use \({\verb|\(\)|}\) as the delimiters, and for displaymath, you should use \({\verb|\[ \]|}\) or
Code:
\begin{displaymath}\end{displaymath}

Note: this is in regards to document preparation not the forum.
 
Last edited by a moderator:
  • #8
Re: Latex tip #2

dwsmith said:
You wouldn't need to define that one. Just do \tanh^{-1} and you have it.

Oh, yeah. Right. It might be a tad faster to type the definition, though. Or you could use something like \at as a shortcut.
 

Related to How can I create PDFs using LaTeX?

1. How do I create a PDF with LaTeX?

To create a PDF with LaTeX, you will need to write your document in a LaTeX editor and compile it using a LaTeX compiler. This will generate a PDF file that you can save and share.

2. Can I include images and tables in my PDF created with LaTeX?

Yes, you can include images and tables in your PDF created with LaTeX. You will need to use the appropriate packages and commands to insert and format these elements in your document.

3. How do I change the font and formatting in my PDF created with LaTeX?

You can change the font and formatting in your PDF created with LaTeX by using different LaTeX commands and packages. These can be applied to specific sections or the entire document, depending on your needs.

4. Are there any limitations to what I can include in a PDF created with LaTeX?

There are some limitations to what you can include in a PDF created with LaTeX. For example, some fonts and advanced formatting may not be supported. It is always best to test your document before sharing it with others.

5. Can I create interactive elements in my PDF created with LaTeX?

Yes, you can create interactive elements in your PDF created with LaTeX by using packages such as hyperref. This will allow you to add links, buttons, and other interactive elements to your document.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
821
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
354
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
964
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
923
  • MATLAB, Maple, Mathematica, LaTeX
Replies
7
Views
2K
Back
Top