18

This is encoded in Unicode as "Combining Comma Above" (U+0313} and with a suitable font and XeLaTeX or LuaLaTeX can be entered directly. In the example below I've made a \glottal macro to make input simpler. I've used Doulos SIL as the font, which places the character correctly; other fonts may place it differently, unfortunately (for example, Linux ...


11

Presumably you do not get âAZ but âĂŹ \documentclass{article} \usepackage[T1]{fontenc} \begin{document} [’] \end{document} Produces To see why, see that ’ is U+2019 that is, the character with value hex 2019. In UTF-8 encoding, characters in that range take three bytes, in this case E2 80 99 Unless told to interpret such triples via the declaration \...


7

You can use a smaller apostrophe, that can be stacked on the letter with tabular. \documentclass{article} \makeatletter \DeclareRobustCommand\glottal[1]{% \check@mathfonts \begingroup \renewcommand{\arraystretch}{0}% \begin{tabular}[b]{@{}c@{}} \fontsize{\ssf@size}{0}\selectfont \raisebox{-0.7ex}[\dimexpr\height-0.7ex][0pt]{'}\\ #1 \end{...


6

Remove the activeacute option: if you use UTF-8 you don't need it. \begin{filecontents*}{\jobname.bib} @article{test1, title = "Designing conjoint choice experiments using managers' prior beliefs", author = "Zsolt Sándor and Michel Wedel", year = "2001", journal = "Journal of Marketing Research", volume = "38", number = "4", pages = "430--444" } @...


5

Add \usepackage[utf8]{inputenc} to fix the issue.


5

You could use stackinset from stackengine package: \documentclass{article} \usepackage{stackengine} \newcommand{\glottal}[1]{\stackinset{c}{}{t}{-3.2pt}{,}{#1}} \usepackage{newtxtext}% copied from Mico's answer \begin{document} Some\glottal{t}hing Something \glottal{t} something \end{document}


5

You have in mind \(G^{\prime} = (V^{\prime}, E^{\prime})\) or, much easier, \(G'=(V',E')\)


4

A simpler solution for \texttt: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage{xparse} \ExplSyntaxOn \RenewDocumentCommand{\texttt}{m} { \tl_set:Nn \l_nemgathos_upquotes_tl { #1 } \tl_replace_all:Nnn \l_nemgathos_upquotes_tl { '' } { \textquotedbl } \tl_replace_all:Nnn \l_nemgathos_upquotes_tl { `` } { \...


4

Here's a solution that uses the \ooalign "primitive" to place a script-sized apostrophe above the macro's argument (here: t). The code assumes that the \glottal macro will never be used in first-level, let alone second-level subscript and superscript material. I trust this isn't much of a constraint. \documentclass{article} \newcommand\glottal[1]{% {\...


3

It often happens that copying code from a PDF file leads to incorrect TeX markup. For instance, if I copy the code on page 40 of the manual for tkz-euclide (version 1.16c) and paste it here, I get \begin{tikzpicture}[scale=2] \tkzDefPoint(0,0){O} \tkzDefPoint(2,-1){A} \tkzDefPoint(2,2){B} \tkzDefPointsBy[symmetry=center O](B,A){} \tkzDrawLine(A,A’...


3

You need to set the mono font, otherwise you get the default Latin Modern without “TeX ligatures”. However, usually ligatures (and curly quotes) are not wanted in typewriter type. \documentclass{report} \usepackage{fontspec, fancyvrb} \setmainfont{CMU Serif} \setmonofont{CMU Typewriter Text}[Ligatures=TeX] \DefineVerbatimEnvironment{VRB}{Verbatim}{...


3

You say that you don't see why you shouldn't use U+0027 for apostrophe and U+2019 for right single quotation mark. You could do this by using the csquotes package and making ' a babel shorthand for british and defining it as a straight quote. Note that this will use a straight apostrophe everywhere when the current language is british, not just within ...


3

You can substituate glyphs conditionally. The main problem is to find out the correct name. In EBGaramond I found e.g. a variant called sinf: \documentclass[12pt]{article} \usepackage{fontspec} \directlua{ fonts.handlers.otf.addfeature{ name = "apo-sc", type = "chainsubstitution", lookups = { { type = "substitution", ...


2

I don't have the font to actually check this approach, so what I did as a surrogate is to print apostrophes in bold red those which should be output as \textup{'}, and those in black will be output as \scshape'. I use listofitems to redefine \textsc. Here I search for all combinations of capital letters followed by an apostrope. While all the rest of the ...


2

Various things like managers{'} prior did not work, but managers'\ prior did work. \documentclass[letterpaper, 12pt, oneside]{book} \usepackage[activeacute,spanish]{babel} \usepackage[utf8]{inputenc} \usepackage[fixlanguage]{babelbib} \selectbiblanguage{spanish} \usepackage{filecontents} \begin{filecontents*}{bibliografia.bib} @article{sandor01_conjoint, ...


2

tex4ht uses special file, unicode.4hf, to translate certain characters in the converted document to some other characters, or XML entities. Otherwise, they are written as utf8 characters, when you use -utf8 option for tex4ht. This file is requested by -c option for tex4ht command, in your case it is unihtf. There are several version of unicode.4hf in the ...


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