New answers tagged

3 votes

Make LaTeX directly recognize unicode symbol

In OpTeX, the Unicode Math is initialized when appropriate font family is selected by \fontfam. You needn't do more than: \fontfam[lm] $dω(τ)\over dτ$ \bye
wipet's user avatar
  • 72.2k
3 votes

Make LaTeX directly recognize unicode symbol

If you want to (or must) stay with pdflatex, the package "alphabeta" (part of greek-fontenc) may help you: \documentclass[]{article} \usepackage{alphabeta} \begin{document} $\frac{dω(τ)}{dτ}$...
G. Milde's user avatar
  • 159
2 votes

Make LaTeX directly recognize unicode symbol

Is it possible to add a package to make things work? Such a package exists. Its name is unicode-math, and it's been around for several years already. Observe that it's necessary to use either ...
Mico's user avatar
  • 496k
1 vote

Print missing characters in Chinese writin

(too long for a comment, hence posted as an answer) How attached are you to the xeCJK machinery and the Qingsong Handwriting font package? If your answer is "I'm not closely attached", you ...
Mico's user avatar
  • 496k
0 votes
Accepted

How to write dot products as <v, w>?

You probably want to use \langle and \rangle: $\langle u,v\rangle$ Those are standard LaTeX commands used for duality brackets or Dirac brackets.
Miyase's user avatar
  • 2,515
3 votes
Accepted

Adjusting the height of norm symbol

Considering the comments below your question, a possible solution to your problem is as follows: \documentclass[12pt]{article} \usepackage[a4paper, margin=1in]{geometry} \usepackage{mathtools, amssymb}...
Zarko's user avatar
  • 293k
2 votes
Accepted

ConTeXt: Escape hash symbols for use with lpeg replacer

I happened to be in contact with Hans while reading this question. He first mentioned \starttext \catcode`#=11 \TextReplacement{#a.m. #p.m.} \stoptext but that might show problems when loading ...
1 vote

ConTeXt: Escape hash symbols for use with lpeg replacer

such that no double-substitutions are performed? There's not really a double-substitution occurring; the hash symbol just appears twice as far as the Lua processor is concerned. The following ...
Max Chernoff's user avatar
  • 3,707
4 votes

What is the "code 2" when TeX tokenize?

You want first to review how TeX transforms input (a sequence of bytes) into tokens. Let's consider the most common case, when TeX is receiving input from a file. The operating system will feed the ...
egreg's user avatar
  • 1.1m
6 votes
Accepted

What is the "code 2" when TeX tokenize?

Question 1 B is character code 66, ^^B is character code (66 - 64) = 2, that's the code 2. Question 2 The two consecutive category code 7 tokens starting the ^^-notation need to have the same ...
Skillmon's user avatar
  • 57.8k
5 votes
Accepted

What follows the `^^` in TeX? Hex or Dec or symbol?

There are two competing ^^ conventions. The original one, valid for TeX version 2, is that TeX looks for the next character code and either adds or subtract 64: if the next character code is greater ...
egreg's user avatar
  • 1.1m
6 votes

What follows the `^^` in TeX? Hex or Dec or symbol?

This is explained in the TeXBook \danger \TeX\ has a standard way to refer to the invisible characters of ASCII: Code~0 can be typed as the sequence of three characters |^^@|, code~1 can be typed |^^A|...
David Carlisle's user avatar
11 votes

How to make a different greater/less than symbol that is used in 17th century math

Before egreg answers this :-) ... picture mode! (Engine independent.) \documentclass{article} \usepackage{pict2e} \usepackage{amsmath}% for scalable line thickness \makeatletter \newcommand*{\vargtr}...
campa's user avatar
  • 29.9k
16 votes
Accepted

How to make a different greater/less than symbol that is used in 17th century math

It looks like U+2ACD so \documentclass{article} \usepackage{unicode-math} \setmainfont{STIX Two Text} \setmathfont{STIX Two Math} \begin{document} $ x ⫍ y$ \end{document}
David Carlisle's user avatar
4 votes

Using Arial and special characters

The superscript characters are in a current version of Arial on windows, but not subscript, however you can use \textsuperscript and \textsubscript to use scaled versions of the test font. \...
David Carlisle's user avatar
4 votes
Accepted

Left quotation marks show as right quotation marks

If it really is a correct left quotation mark, why is [it] displaying as a right quotation mark leaning right? Simple answer: Because that's how the designer of the Palatino font -- the late Hermann ...
Mico's user avatar
  • 496k
1 vote

How can I create an algorithmicx block with special characters?

If you don't want the End tag in a For cycle, you want it in no other situation. \documentclass{article} \usepackage{algorithm} %\usepackage{algorithmicx}% not along with algpseudocode \usepackage[...
egreg's user avatar
  • 1.1m
6 votes
Accepted

Difference between `\lhd` and `\triangleleft`

If you load amssymb and amsfonts then the definitions are \DeclareMathSymbol{\lhd} {\mathbin}{AMSa}{"43} \DeclareMathSymbol{\unlhd} {\mathbin}{AMSa}{"45} \DeclareMathSymbol{...
David Carlisle's user avatar
0 votes

Unexpected latex error: Text line contains an invalid character

For me, this problem appeared after my computer crashed and rebooted. I had to delete both *.aux *.out files for everything to start working again.
mathreader's user avatar
3 votes
Accepted

I wish to use "engraved font" type glyphs for set names e.g. 𝔸, 𝔹, ℂ, 𝔻,… (U+1D538 – U+2149) but struggling to find LaTex codes for them

Blackboard fonts? \documentclass{standalone} \usepackage{amsfonts} \begin{document} $ \mathbb{ABC} $ \end{document}
cfr's user avatar
  • 194k
2 votes
Accepted

Symbol(enter symbol)

\documentclass{article} %\usepackage{boisik} \DeclareSymbolFont{bskarr}{U}{bskarr}{m}{n} \DeclareFontFamily{U}{bskarr}{ } \DeclareFontShape{U}{bskarr}{m}{n}{<->bskarr10}{} \DeclareMathSymbol{\...
Steven B. Segletes's user avatar
1 vote

A bold plus symbol in math mode

Let's go for another necromancer badge... If you really want to go really bold... \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{pifont} \newcommand{\Plus}{\mathord{\...
Rmano's user avatar
  • 39.4k
3 votes

Importing two symbols from stix2

You need no package, actually. The idea is to look how the commands are defined in stix2.sty and you find \stix@MathSymbol{\rdiagovfdiag}{\mathord}{arrows2}{"C4} \stix@MathSymbol{\fdiagovrdiag}{\...
egreg's user avatar
  • 1.1m
8 votes
Accepted

Importing two symbols from stix2

The idea is to make a copy of stix2.sty, search for the lines that define the two symbols, delete everything after these lines, and then going backwards to retain only those lines that are needed for ...
gernot's user avatar
  • 48.7k
1 vote

How to remove the red link border only from \gls in the package glossaries-extra?

Using \setkeys{glslink}{hyper=false} after \usepackage{glossaries-extra} disables linking of glossary entries, which also removes the red hyperref border.
Paul Hofer's user avatar
1 vote

How to load specific single glyph associated to \mathscr{\altr} from MathTime Pro 2?

I have solved my issue. It was due to a careless look at the table generated by the command: latex ntfss It does have the glyph I wanted listed with the code '062. It is then just a matter of ...
Mauricio Calvao's user avatar
-1 votes

How to create a "succeeds or precedes" symbol?

You asked... How do you create a "succeeds or precedes" symbol? There is usually no reason to write anything like, x ⋚ y. If (x ⪯ y) and (x ⪰ y), then x = y. That is, if (x proceeds or is ...
IdleCustard's user avatar
2 votes

How to create a new `\to` or `\rightarrow` symbol with a black head?

The pdfMsym package offers some tools for defining arrows. Their size should be compatible with your font size, and they scale with sub/superscripts. It also will create longer and extendable variants ...
Slurp's user avatar
  • 866
2 votes
Accepted

Undesired behaviour within systeme

You want to use \systeme for explicit linear systems, when you want to align the variables. In your case there's nothing to align (and just one formula), so you want \begin{equation} \biggl\{\,\sum_{i\...
egreg's user avatar
  • 1.1m
4 votes

Undesired behaviour within systeme

I take it that you wish to insert a tall opening curly brace to the left of the equation, and also that the equation should be typset ins display-style math mode. If this interpretation is correct, ...
Mico's user avatar
  • 496k

Top 50 recent answers are included