Let us assume that in all fonts you are using the transpose operator ⊤ has form similar to the Latin letter T in Computer Modern. How on earth do I move ⊤ to the left, and, if necessary, down, automatically? On the one hand, ⊤ could be moved slightly to the left in $W^{\top}T^{\top}M^{\top}$, but not too much. On the other hand, the vertical and horizontal spacing between the letter and the following ⊤ in $A^{\top} L^{\top} u^{\top} w^{\top}$ is horribly large:    In other words, I need a universal macro, say, \transpose{stuff} that would automatically take care of placing the down tack symbol as a right superscript of stuff but not wasting space. Of course, "universal" is not well-defined; we just want that the macro does the right job for as many fonts and letters as possible. (An aside: the  uses fixed horizontal length -1\mu and no vertical space change. This is not good enough for me.)  My attempts to do horizontal and vertical spacing at the same time with LaTeX3 have no visible effect. In my example below, tl_case does not work as I expect, e.g., \transpose{u} is the same as u^{\top} (which should not be the case):  \tl_new:N\l_tl_lastTokenOfList \NewDocumentCommand{\transpose}{m}{ \tl_set:Nn \l_tl_lastTokenOfList {\tl_item:nn {#1} {-1}}   #1^{\tl_case:NnTF \l_tl_lastTokenOfList        { {A}{\mkern-3mu\top}          {L}{\mkern-3mu\top}          {u}{\mkern-3mu\raisebox{-.1ex}{\top}}          {w}{\mkern-3mu\raisebox{-.1ex}{\top}}        }        {}        {\top}      } }
122032
I would like that the transpose in the following has the same height in both examples, is there a possibility to make the transpose sign ignore the boxes above the charater?  \documentclass{article}  \usepackage{amsmath}  \begin{document}   \newcommand{\vect}[1]{\mathbf{#1}} \newcommand{\vA}{\vect{A}} \newcommand{\dvect}[1]{\vect{\dot{#1}}}  \begin{align}     {_\mathrm{K}}\dvect{\hat{\vA}}^\top \quad {_\mathrm{K}}\dvect{\vA}^\top \quad\quad {_\mathrm{K}}\vA^\top \end{align} \end{document}     {_\mathrm{K}}\dvect{\vA}^\top \quad {_\mathrm{K}}\vA^\top \end{align} \end{document}
106706
It is common (or it used to be) to use a blackboard-bold variant of \mu to denote roots of unity in some mathematical papers.  However, despite searching (several times, periodically over several years) I have never been able to locate any package or technique that makes this possible, other than using Metafont or possibly hunting through the font definitions to see if it is something I can create a variant of (along the lines of the suggestions in Section 8 of the Comprehensive LaTeX symbol list).  Thus far, I haven't been sufficiently motivated to learn how to do any of this (although it probably would have resulted in a net time savings), and I feel like I cannot be the only person who would have tried.  Is anyone aware of an existing way to produce this character?
99329
I saw this °͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌ strange character online. I also noted that:   It needs 26 backspaces to delete but behaves like one character when selecting.   It is drawn vertically covering many rows above.  What is this character and why is it behaving like this ?
15837
Knuth hid a special rule for delimited arguments in exercise 20.5 of the TeXbook.     If the very last character of the   parameter text is #, so that this #   is immediately followed by {, TeX   will behave as if the { had been   inserted at the right end of both the   parameter text and the replacement   text.   This means that a macro can be defined as,  \def\a#1#{#1}   calling it as \a 10 will give a runaway argument error whereas calling it as \a{12}, will compile with no trouble.  I struggled to find a practical application for such macros even after looking at TeX by Topic, TeXbook and LaTeX source.   Here is my take on it, create some commands to typeset and do some calculations for fractions, as for example those found in basic arithmetic texbooks. You type this,  \[\FRAC ADD{3}{8}+{1}{7}\] \[\FRAC SUB{5}{8}-{1}{7}\] \[\FRAC MUL{5}{8}x{13}{1201}\]   and you get this:    Here is the code,  \documentclass{article}  \begin{document} %% macro factory \def\FRAC#1#{\csname #1\endcsname} %% add \def\ADD#1#2+#3#4{%   \frac{#1}{#2}+\frac{#3}{#4}=   \frac{\the\numexpr(#4*#1)+(#3*#2)}{\the\numexpr#2*#4} } %% subtract \def\SUB#1#2-#3#4{%ok top   \frac{#1}{#2}-\frac{#3}{#4}=   \frac{\the\numexpr(#4*#1)-(#3*#2)}{\the\numexpr(#2*#4)} } %% multiply \def\MUL#1#2x#3#4{%   \frac{#1}{#2}\times\frac{#3}{#4}=   \frac{\the\numexpr(#1*#3)}   {\the\numexpr#2*#4} } %% testing \[\FRAC ADD{3}{8}+{1}{7}\] \[\FRAC SUB{5}{8}-{1}{7}\] \[\FRAC MUL{5}{8}x{13}{1201}\] \end{document}   Are there any practical applications for such macros? Are there any special precautions one should take? Why would Knuth include this facility in the first place?
63322
I a chat discussion it was suggested that \hspace*{\fill} (with a space before it to allow for a line break) was sufficient to always get the text following aligned to the right. And indeed, it is aligned to the right.    However, in one case it is inserting an additional line  break where one should not be required as illustrated by the last example here.  I want the text bumped to the next line if and only if (iff ) there is no room:    If I remove the space before the \hspace*{\fill}, there are cases (second and third) where a new line should have been inserted but is not:    Related Question:      I have tried the suggestions at the related question and:   Martin Scharrer's suggestion of using \hbox{}\hfill results in the text being on the left for the last case. Herbert's \When macro exhibits a similar problem for the last case. Thorsten Donig's \signed macro does yield the correct number of lines, but portions of the file name for the middle two cases show up on the second line when they easily fit in the first line.     Notes:  I believe that this is unrelated to the problem, as I was able to reproduce the problem without it.  But, am mentioning it here in case it causes an issue with the proposed solution.  I am using \texttt for the file name. This resulted in an additional complication which I initially thought was the cause of the problem.  So, my actual use case is commented out below and it incorporates a solution from        Code:  \documentclass{article} \usepackage[paperwidth=7.0cm,showframe]{geometry} \usepackage{xcolor} \usepackage{xparse}   \newcommand*{\FillLine}[2]{% \noindent\parbox{\linewidth}{%     \raggedright     File:~#2 % &lt;-- Need space here     %Space before \hspace* allows for a break before it     \hspace*{\fill}\texttt{\small CONFIDENTIAL}%  }% }  %\newcommand*{\EnableHyphenationInTexttt}{\hyphenchar\font=45\relax} % %\newcommand*{\FillLine}[2]{% %    \noindent\parbox{\linewidth}{% %       \raggedright %       File:~\texttt{\EnableHyphenationInTexttt#2} % &lt;-- Need space here %       %Space before \hspace* allows for a break before it %       \hspace*{\fill}\texttt{\small CONFIDENTIAL}%  %    }% %}  \begin{document} \FillLine{Name}{Value}  \bigskip \FillLine{Name}{A-Long-Value}  \bigskip \FillLine{Name}{iiiiiii-iiiii-iiiiiii}  \bigskip \FillLine{Name}{Some-Really-Really-Long-Value} \end{document}
85895
I sometimes find that the \widetilde accents sits too high above the math letter it is applied to. An example:    To me it looks as if the first tilde is sitting just in between the two lines; it is not visually attached to the "B". As the second "B tilde" shows, I did manage to produce a version where the \widetilde is lowered, but this is an ugly hack using \textcolor:  \rlap{\raisebox{-0.1ex}{$\widetilde{B}$}} \rlap{\smash{\textcolor{white}{\rule[-1ex]{2em}{2.7ex}}}} B   What I'm doing here: I lower the whole \widetilde{B}, then I erase the "B" by some (manually adjusted) white box, and finally I typeset the "B" that is seen in the output. Of course I have this wrapped in some macro, but this macro does not work for small letters such as "m", which is due to the white box.  The more straightforward attempt  \rlap{\raisebox{-0.1ex}{$\widetilde{\phantom{B}}$}}B   does not work as the output shows: the tilde in  is too far to the left. The reason for this is that TeX handles accents over single characters differently, using the \skewchar of the font, and \phantom{B} is not a single character. Moreover, in the version \tilde B I find the tilde too small: .  One of the problems of my solution is that it doesn't render properly when I view the dvi file in Yap. Does anyone know a better solution to lower the \widetilde?  EDIT:  TH's first solution works rather well. It has the only drawback that it does not lower the \widetilde over small letters such as "m". However, this is not a big deal since in this case the tilde does not look as if it is sitting in between two lines. I came up with an answer that does lower the \widetilde over "m", but that has other major problems. TH's (rather involved) second solution fixes most of these problems. Great work!
91296
I am wondering if there is a way to change the math font temporarily, similar to the way it can be done in text mode:  {\ttfamily Some text in typewriter font.}   Is there a way to do $\ttfamily a + b = c$ for example?  I know I could do $\mathtt{a + b = c}$, just like I could do \texttt{text}, but sometimes the other way results in cleaner code.  Please mind I am not looking for something like $\texttt{monospace} \textit{ in math.}$ I want to be able to write complicated formulas without having to mention the font in every word, as I would do in, for example, $\Sigma_{\mathtt{i} = 1}^{\mathtt{n}}$.
59376
This is a very short question and hopefully there's a short answer. I know I can use \stackrel{top}{bot} to vertically merge two symbols into one with top on top and bot on the bottom. Is there something similar for left-right merging? I ask because I want to make a += symbol (for an additive update step in code). If there's already a symbol for that, that would be OK too.
118677
I'm wondering about the best way to do an explicit space character (I don't even know what it's properly called), like the ones you get in the \begin{verbatim*} environment. The closest I've found is  \sqcup   in math mode, but it seems like a bit of a hack to me. Is there any text symbol for what I'm looking for?
83896
How could I stack two symbols on top of each other, so that they would appear smaller, i.e. something like \begin{array}a\\b\end{array}, but would fit nicely in a single line with the rest? So for example, I want to write blah blah blah $S(\begin{array}a\\b\end{array})$ blah blah in one single line.  Thanks a lot!
22341
I want to reduce the size of the vertical space in matrix environment and have a result something like this     But at present I manage something like below     with the following code    $\begin{bmatrix}     00 &amp; 08 &amp; 10 &amp; 18 &amp; 20 &amp; 28 &amp; 30 &amp; 38 \\     01 &amp; 09 &amp; 11 &amp; 19 &amp; 21 &amp; 29 &amp; 31 &amp; 39 \\     02 &amp; 0a &amp; 12 &amp; 1a &amp; 22 &amp; 2a &amp; 32 &amp; 3a \\     03 &amp; 0b &amp; 13 &amp; 1b &amp; 23 &amp; 2b &amp; 33 &amp; 3b \\     04 &amp; 0c &amp; 14 &amp; 1c &amp; 24 &amp; 2c &amp; 34 &amp; 3c \\     05 &amp; 0d &amp; 15 &amp; 1d &amp; 25 &amp; 2d &amp; 35 &amp; 3d \\     06 &amp; 0e &amp; 16 &amp; 1e &amp; 26 &amp; 2e &amp; 36 &amp; 3e \\     07 &amp; 0f &amp; 17 &amp; 1f &amp; 27 &amp; 2f &amp; 37 &amp; 3f   \end{bmatrix}$   I can change the font using \mathsf{}, but other than that, how I reduce the vertical space between the rows? I did find things like  to increase vertical space between rows in matrix, but not something that can decrease the space.
49330
I am using the Neo keyboard layout, which uses all kinds of modifier keys to input all kinds of characters (e.g. Greek letters and mathematical symbols). It also has shift+Mod3+space mapped to Unicode 0A, no-break space. From time to time it happens that I mistakenly press these buttons (while entering a space between other symbols with the same modifier keys).  Unfortunately [Lua|Xe]TeX obeys these spaces as unbreakable spaces both in normal text and in mathmode (using fontspec and unicode-math). However my editor (vim) shows the symbol like a normal space, so it is impossible to see where I made a mistake.  Is there an easy way to tell [Lua|Xe]TeX to treat no-break spaces like normal spaces?
63277
I have the following diagram:    However, this looks a bit ugly, I would like a version that looks a little bit better. For example, size the last arrow such that the T_\phi is moved to the right.  This is the code which I am using to do this:  \begin{align*}   \xi \colon &amp;\lb \to \mathcal{L}(\hh)\\   &amp;\phi \mapsto T_\phi. \end{align*}   Where \lb and \hh just give the names for those spaces. Does anybody have a suggestion how I would improve the look of this function definition?
93898
In math, one often needs to put a letter inside the symbols &lt;&gt;, e.g. to denote a cyclic group &lt;x&gt; generated by some element x. However, plain text displays the symbols &lt; and &gt; as an upside down exclamation point and an upside down question mark, respectively, while math type displays a large space like so:  &lt; x &gt;    Is there some way to reduce this spacing?
22585
Take a look at this here:  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} \Leftrightarrow \qquad P'_1(t)+\lambda P_1(t)&amp;=\lambda e^{-\lambda t} &amp;&amp; (2.6)\\ \Leftrightarrow \qquad e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)&amp;=\lambda e^{\lambda t} e^{-\lambda t}=\lambda \\ \end{align*} \end{document}   Is it possible to have the equivalences below each other like the equations are?  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{alignat*}{4} P'_1(t)&amp;=-\lambda P_1(t)+\lambda P_0(t)\\ \Leftrightarrow &amp;&amp;\qquad  P'_1(t)+\lambda P_1(t)&amp;=\lambda e^{-\lambda t} &amp;&amp; (2.6)\\ \Leftrightarrow &amp;&amp;  e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)&amp;=\lambda e^{\lambda t} e^{-\lambda t}=\lambda \\ \end{alignat*} \end{document}   This almost works but i have the mention problem that the first line is pulled to the very left.
11450
I'm writing my bachelor-thesis and have a couple of small sub-sub-sections explaining conversions, like in the following  \subsubsection*{Assignment}  This document only explains non-compound assignments. The other kind, i.e \texttt{a += b}, is supported by the language too, but is not yet implemented.   \begin{itemize} \item If the first is an \texttt{auto} variable, no conversion takes place when assigning       the right hand side to the variable designated by the left hand side.  \item Otherwise, an assignment conversion takes place converting the given value to the type       of the designated variable.  \item Assignment requires an lvalue as the left hand side, and yields an lvalue result.  \end{itemize}  \subsubsection*{Multiplication} % ...   But latex renders it quite ugly with much space in between the items. I think it does so to fit the whole page. How can I tell it not to do so? Is what I'm doing right at all?
91211
I am currently writing my thesis and need to include a bunch of email conversions. I am using classicthesis. I wonder, how you would format stacked conversions. Moreover, how would you deal with the email header, signatures and line breaks: why do I need to add \\ all the time? This is the configuration I am currently experimenting with:  \documentclass[ oneside, openright, titlepage, dottedtoc, numbers=noenddot, headinclude, footinclude=true, cleardoublepage=empty, abstractoff, BCOR=5mm, paper=a4, fontsize=11pt, ngerman, american ] {scrreprt}  \PassOptionsToPackage{utf8}{inputenc} \usepackage{inputenc} \usepackage{blindtext}  \usepackage{framed}  % Vertical line that highlights quotations in an email. % Use \begin{leftbar} and \end{leftbar} environment. % Width of the line = 0.4pt % Space between the line and the text = 10pt % Requires \usepackage{framed} \renewenvironment{leftbar}{%   \def\FrameCommand{\vrule width 0.4pt \hspace{10pt}}%   \MakeFramed {\advance\hsize-\width \FrameRestore}}% {\endMakeFramed}  \usepackage{nicefrac} \usepackage[english]{babel} \usepackage[pdfspacing]{classicthesis}  \begin{document} \selectlanguage{ngerman} % american ngerman % Disable paragraph indentation. \setlength{\parindent}{0pt}     \begin{verbatim} From: john.doe@yahoo.com Subject: Your inquiry from 20042012 Date: Thu, 3 May 2012 11:34:54 +0200 To: Jane Doe &lt;jane.doe@hotmail.com&gt; \end{verbatim}  Jane Doe wrote: \begin{leftbar} \begin{leftbar} \begin{leftbar} \begin{leftbar} There are a couple of questions I like to ask. Please forward them if you cannot do so. \end{leftbar} I hope I can answer them after holidays. \end{leftbar} I am back from holidays now and will look through your questionaire the next days. \end{leftbar} Thank you, Mr. Doe - I am awaiting your answers. \end{leftbar}  Dear Mrs. Doe,\\ \ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut molestie placerat pharetra. In quam leo, tincidunt ut consequat eget, malesuada sit amet urna. Morbi et interdum arcu. Nullam nisi nunc, ullamcorper vitae pulvinar eu, suscipit ut augue.\\ \ Donec risus mi, accumsan ac interdum id, molestie sed mauris. Suspendisse porttitor luctus justo in ullamcorper. Proin in neque magna. Mauris quis arcu eget enim mattis pharetra vitae a dolor. Nam aliquam consectetur mollis. Ut at sem quis dolor faucibus fringilla. Quisque cursus vehicula odio, vitae placerat ipsum dapibus id.\\ \ Best regards\\ John Doe\\ \ (See attached file: Questions\_Doe.doc)  \begin{verbatim} _______________________________________________________ Administration New York John Doe Mainstr. 3 11111 New York  T:        (011) 212-4301 F:            (011) 212-954301 M:         john.doe@yahoo.com \end{verbatim}  \begin{leftbar} My question I looking forward to reading the answers to my questions:\\ \ 1. Is the world analog or digital? \end{leftbar} digital  \begin{leftbar} 2. How long does the world exist?  \end{leftbar} analog since 1984, digital since 1999  \end{document}     This is what the above latex example looks like.    I also saw  but I do not want to use &gt; or colors. My settings are inspired by this  and this .