Tag Info

New answers tagged

7

Not \=i\ but \=\i \i is the dotless i command. If you use \usepackage[utf8]{inputenc} then you should just be able to type Ibn-Sīnā directly. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{012B}{\=\i} \DeclareUnicodeCharacter{0101}{\=a} \begin{document} [ Ibn-Sīnā ] or [ Ibn-S\={\i}n\={a} ] ...


3

You need to escape your ampersand, just prepend it with a backslash like this: @book{Ref1, author = " Myself", title = "it's my book", year = "2015", publisher = " Home publication", address = "At home, Smith \& Johns, abc ", } To expand on this, the reserved characters in LaTeX are: # $ % ^ & _ { } ...


3

Here's a scalable TikZ variant which I drew as part of a larger project: \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{through,arrows.meta,calc} \begin{document} \tikzset{ anarchy/.pic={% \draw [line width=.1*#1, {Round Cap[length=.025*#1]}-{Round Cap[length=.025*#1]}, pic actions] (-.5*#1,-.1*#1) -- (.6*#1,.1*#1); \draw ...


6

There is a special command for that in the stackengine package: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[svgnames]{xcolor} \usepackage{amsmath} \usepackage{stackengine} \begin{document} \stackinset{c}{}{c}{}{\color{red}$\scriptstyle\circ$}{\color{ForestGreen}$x$} \quad ...


3

Not with tikz \documentclass{scrartcl} \usepackage{graphicx} \makeatletter \def\cx {{\ooalign{x\cr \hidewidth\raisebox{.2ex}{$\m@th\scriptscriptstyle\circ$}\kern.01em \hidewidth\cr}}} \def\cX {{\ooalign{X\cr \hidewidth\raisebox{.4ex}{$\m@th\scriptstyle\circ$}\kern.01em \hidewidth\cr}}} \makeatother \begin{document} \cx\ and \cX ...


5

With tikz \documentclass{article} \usepackage{tikz} \newcommand{\circledx}{% \begin{tikzpicture} \node[inner sep=0pt,outer sep=0pt] (a) {x}; \draw (a.center) circle (0.15ex); \end{tikzpicture} } \newcommand{\circledX}{% \begin{tikzpicture} \node[inner sep=0pt,outer sep=0pt] (a) {X}; \draw (a.center) circle (0.2ex); \end{tikzpicture} } ...


4

This is due to not having a space in the definition of the active ': \adef'{\char"0D} should be \adef'{\char"0D } so TeX will know where the constant terminates (and the space will be gobbled by TeX rule). In the first case, TeX is presented with 'C that becomes \char"0DC and TeX duly looks for character number "DC (which of course doesn't ...


3

Use \_ or \textunderscore. The problem is that, on its own, _ is a reserved LaTeX character like % and that is why you are getting the error. The fact that it is inside a fbox should not be the issue. For a complete list of reserved characters see http://en.wikibooks.org/wiki/LaTeX/Basics#Reserved_Characters.


0

After some trials and errors, I found one solution to this problem; by using another Arabic font that already supports the Latin charsets which is not supported by the Arabic font of interest. It is just like complementing the required charset of one font with those of another. In my trial, I used Amiri font: \documentclass[11pt]{scrbook} ...


3

Marking the language changes with \foreignlanguage{english}{...}, \begin{otherlanguage*}{english}...\end{otherlanguage*} is better and will automatically do what you're looking for, because \englishfont would be selected, with the added benefit of correct hyphenation. For the problematic characters, use ucharclasses: \documentclass[11pt]{scrbook} ...



Top 50 recent answers are included