Hot answers tagged

20

This is an implementation using pict2e; the angle is 40 degrees. \documentclass{article} \usepackage{pict2e} \makeatletter \DeclareRobustCommand{\sector}{\mathord{\mathpalette\make@sector\relax}} \newcommand{\make@sector}[2]{% \settoheight{\unitlength}{$#1x$}% \begin{picture}(1,1.06) \linethickness{.08\unitlength} \moveto(0.5,0) \lineto(0.842,1) ...


17

There is a symbol from the fdsymbol package called \sector. Also, depending on your level of desperation, you might want to look through The Comprehensive LATEX Symbol List.


17

\usepackage{MnSymbol} I just searched The Comprehensive LaTeX Symbol List and found it.


10

Package amsmath uses \Longrightarrow to get the \Implies symbol. \Longrightarrow and \Longleftarrow are composed symbols with the standard fonts (unless a math font is used, which contain ready glyphs for the symbol). The arrow is taken from \Rightarrow and \Leftarrow, the equals sign = is used as prolongation, see macro \Relbar. At larger font sizes, the ...


6

Don't use % if you want to write the % character directly. The % character is reserved to indicate a comment after which everything is ignored. This is no problem at the end of a line, but the % should not occur in between, say, $ 11 % $, because this way TeX has entered math mode which is not correctly closed (unless there's a stray $ following in one of ...


4

Add \usepackage{enumitem} to customize the labels. All the label syntax used below come from existing existing answers. To display a caret, preface it with \string. For the $, preface it with \ and for ], preface with \char. For the backslash, \textbackslash works here. \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{enumitem} ...


3

The symbol drawn with pgf. The size (\SectorRadius), the angle (\SectorHalfAngle), and the line width (\SectorLineWidth) can be configured: \documentclass{article} \usepackage{pgf} \newcommand*{\SectorRadius}{1ex} \newcommand*{\SectorHalfAngle}{45} \newcommand*{\SectorLineWidth}{.4pt} \newcommand*{\sector}{% \begin{pgfpicture} ...


2

You can find a font that has that Unicode symbol (see the list at http://www.fileformat.info/info/unicode/char/2314/fontsupport.htm), install it as a system font, load it using fontspec, and put that symbol directly in your .tex file. Compile with XeLaTeX or LuaLaTeX instead of pdfLaTeX. \documentclass{article} \usepackage{fontspec} \setmainfont{Cambria} ...


2

Here is a \uhref command for selectively underlining the text: \documentclass{article} \usepackage{etoolbox} \usepackage{hyperref} \makeatletter \newif\ifunderlinehref \DeclareRobustCommand{\uhref}{\underlinehreftrue\href} \patchcmd{\hyper@link@} {{\Hy@tempb}{#4}} {{\Hy@tempb}{\ifunderlinehref\underline{#4}\else#4\fi}} {}{} \apptocmd{\hyper@link@} ...


2

Well, one way to fix the problem is to change the position of the \underline so that it is placed within the second argument of the href. The answer, then, becomes: \documentclass{article} \usepackage{hyperref} \begin{document} 1 (without \#, link, underlined) = \underline{\href{http://the-best-URL-in-the-world_without-a-number-sign}{URL without number ...


2

The Comprehensive Symbol Guide is your flexible friend concerning lookup of thousands of symbols: \documentclass{article} \begin{document} $\bot\bot\bot$ \end{document}


1

Try using ntheorem and the nonumberplaintheorem style. The placement of endmarks is automatic (even if the environment ends up in displayed equations). Here is a possible code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{lipsum} \usepackage{amsmath} \usepackage[thmmarks, amsmath, ...


1

Ok, the problem was font Fontin doesn't support Croatian letters. I tried one that I was sure supports (like Andada-Regular) and it worked. Thank you very much. On the page https://www.fontsquirrel.com you can filter fonts by languages that they support and download them.


1

Maybe the problem is the spacing when used in formulas? Look here: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \begin{document} a :- b $a :- b$ $a \mathop{:-} b$ $a \mathop{:\!-} b$ $a \mathop{:\!\!-} b$ %% suggested by Steven B. Seaglets $a \mathop{\vcenter{\hbox{$:$}}-} b$ \end{document}


1

This seems to be a recently introduced bug in MikTeX, present at least in 2.9.5870. The example works after installing MikTeX 2.9.5550 (using the currently latest ProTeXT installer). A hack to make it work The example also works when you start from MikTeX 2.9.5550, and then update all packages except miktex-metafont-bin and miktex-mfware-bin. I did not try ...



Only top voted, non community-wiki answers of a minimum length are eligible