0

I am using Overleaf to create a report, and I have to use some Latin characters in the text.

For the word "SȾÁUTW̱", the unicodes are:

  • (U+023E) \textstrokecapitalt for "Ⱦ"
  • (U+00C1) \capitalacute{A} for "Á"
  • (U+0331) \textsubbar{W} for "W̱"

I can run the A and the W, however, I cannot seem to get the code for the T work.

In the preamble, I have the following packages (I tried to somehow run something for Latin...):

\usepackage[utf8]{inputenc}
\usepackage{unicode}
\usepackage[T1]{fontenc}

along with

\inputencoding{latin1} 

right at the word ""SȾÁUTW̱".

I'm out of ideas... Please help! Thank you!

  • 1
    Welcome to TeX.SX! Please post the code of a small complete document, from \documentclass to \end{document}, that illustrates your problem. – gernot Feb 15 '24 at 08:21

2 Answers2

1

Suggestion: use a Unicode engine, like lualatex (no problem in Overleaf!) and choose a font with the symbols you need. On my computer, albatross says that one of them is, for example, Libertine, so:

\documentclass{article}
\usepackage{libertine}
\begin{document}
    SȾÁUTW̱
\end{document}

enter image description here

(BTW: latin1 has nothing to do with Latin the language... )

If you need to use pdflatex, or math, or you need a specific font the thing could be a bit more complex --- we do not know because you did not provide a compilable, minimum example.

Rmano
  • 40,848
  • 3
  • 64
  • 125
  • Thank you so much for your reply! I just started learning latex on Overleaf so sorry about that. I am using pdflatex, bibtex, documentclass{article}. Would that help? I guess lualatex and pdflatex does not work together? – megaevil Feb 15 '24 at 19:06
  • Hi! You can read it here: https://tex.stackexchange.com/questions/13593/the-differences-between-tex-engines . You can easily switch engine on overleaf, just choose "compiler" in the main menu. – Rmano Feb 15 '24 at 20:05
0

With legacy engines you can use tipa for \textsubbar and \ooalign for the stroke.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[safe]{tipa}

\NewDocumentCommand{\textstroke}{m}{{% open a group \vphantom{\strokechar}% \ooalign{\hfil#1\hfil\cr\hfil\strokechar\hfil\cr}% }} \newcommand{\strokechar}{\raisebox{0.2ex}{\textfractionsolidus}}

\begin{document}

S\textstroke{T}\capitalacute{A}UT\textsubbar{W}

\end{document}

enter image description here

But do remove \inputencoding{latin1} which is definitely wrong for your purposes.

egreg
  • 1,121,712
  • OMG IT WORKED!!!! AHHH THANK YOU SO MUCH!! I spent hours trying to make it work yesterday :'( This is amazing!! Thank you!! Would it be alright if you could expand and elaborate on the codes you used? I would like to understand how you ended up with the \NewDocumentCommand bit. Thank you so much for your help! – megaevil Feb 15 '24 at 20:31