I think I add
\usepackage[utf8]{inputenc}
to the preamble. But how do I define the character. Lets say I only know the number of the character I need to add in the extended ASCII set?\usepackage[utf8]{inputenc}
to the preamble. But how do I define the character. Lets say I only know the number of the character I need to add in the extended ASCII set?NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass[a4paper]{article}
\usepackage[french,ngerman,english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[autostyle=true]{csquotes}
\usepackage{upgreek}
\usepackage{textcomp}
\begin{document}
normal $\mu$ and $\upmu$ using package upgreek
µ input via unicode
\S{} and §
``text in `quotes'"
Smart quotes using package enquote
\enquote{text in \enquote{quotes}}
\glqq enquotet text\grqq
\flqq enquotet text\frqq
\selectlanguage{french}
\enquote{text in \enquote{quotes}}
\selectlanguage{ngerman}
\enquote{text in \enquote{quotes}}
\texttrademark
\"a or just ä
\end{document}
On Linux I have no problem to produce these characters (on my German keyboard).Gottfried wrote:[…] Micro sign (181), trade mark sign (153), left double angle quotes (171) and right double angle quotes (187), the section symbol (167), and single left and right angle quotes (139), (155), trade mark sign (153). […]
\textmu
from textcomp\texttrademark
\S
Code: Select all
«text» § µ ™
Code: Select all
text
Code: Select all
\documentclass[12pt]{article}
\usepackage[usenames]{color}
\usepackage{booktabs, graphicx}
\usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry}
Code: Select all
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{upgreek}
\usepackage{textcomp}
Code: Select all
\usepackage[utf8]
Code: Select all
\usepackage[utf8]{inputenc}
Code: Select all
\texttrademark
\S{}
$\mu$
Thank you! That example worked. I will now use babel + csquotes for all quotation related things from now on. It saves much time, I can already see.Johannes_B wrote:Your files have to be utf8-encoded, your editor can do so. If not, get another. Which one do you use? Please click on open in writelatex in my previous post to see the output.
Read the csquotes-documentation to learn, how to change the output to guillemets. I also changed my previous post, have a look.
NEW: TikZ book now 40% off at Amazon.com for a short time.