我需要找到一種在文字中插入小括號的方法,但我沒有找到任何命令來執行此操作。我需要括號看起來像 MES 和 MU.36 周圍第二行的括號:
我嘗試使用 \textuperscript{\lceil{MES}} 但它不起作用(順便說一句,我很確定我也弄錯了括號 {} 的位置),它將整個文本作為上標。
我將我的 MWE 附在序言中:我從用於文字的資料庫複製了括號,但它們沒有顯示在 pdf 中。
微量元素:
\documentclass[a4paper, 12pt]{book}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage[autostyle=true]{csquotes}
\usepackage[backend=biber,style=philosophy-verbose,latinemph,singletitle=true]{biblatex}
\usepackage[a4paper,top=1.5cm,bottom=1.5cm,left=1.5cm,right=1.5cm]{geometry}
\pretolerance=10000
\tolerance=2000
\emergencystretch=10pt
%%%%
%%%%
\renewcommand{\baselinestretch}{1.5} %INTERLINEA
%%%%
\DeclareLanguageMapping{italian}{italian-philosophy} %MAPPING LINGUA
%%%%%
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{paralist}
\usepackage{verbatim}
\usepackage{caption}
\usepackage{tabularx}
\usepackage{multirow}
%%%%
\usepackage{polyglossia}
\newfontfamily\italianfont[Script=Latin]{Times New Roman}
\newfontfamily\greekfont[Script=Greek]{Gentium Plus}
\setmainlanguage{italian}
\setotherlanguages{greek}
\PolyglossiaSetup{italian}{indentfirst=false} %NO INDENT PRIMA RIGA DOPO CHAPTER O SECTION
%%%%
%%%%%%%
\usepackage{blindtext}
\renewcommand*{\mkbibnamefamily}[1]{\textsc{#1}}
\makeatletter
\DeclareCiteCommand{\textcite}
{\iffootnote{\usebibmacro{cite:init}}{}%
\usebibmacro{prenote}}%
{\usebibmacro{citeindex}%
\iffootnote
{\global\booltrue{cbx@mlafootnotes}%
\renewcommand*{\newunitpunct}{\addcomma\space}%
\usebibmacro{cite:mla:foot}}
{\usebibmacro{cite:mla}}}
{}
{\usebibmacro{mla:foot:postnote}}
\makeatother
%%%%%%
\bibliography{contratti.bib}
%%%%%
\newcommand{\cmd}[1]{\texttt{\textbackslash #1}}
%%%%%
\setlength{\parindent}{24pt} %INDENT PARAGRAFI
%%%%%%
%TOGLIE "" AI TITOLI DI TUTTE LE ENTRY
\DeclareFieldFormat*{title}{#1}
\DeclareFieldFormat[article]{citetitle}{#1}
\DeclareFieldFormat[article]{title}{#1}
%%%%%%%
%TOGLIE PARENTESI A DATE
\renewbibmacro*{issue+date}{%
\setunit{\addcomma\space}% NEW
% \printtext[parens]{% DELETED
\iffieldundef{issue}
{\usebibmacro{date}}
{\printfield{issue}%
\setunit*{\addspace}%
% \usebibmacro{date}}}% DELETED
\usebibmacro{date}}% NEW
\newunit}
%%%%%%
%TOGLIE "P." ALLE PAGINE DI TUTTE LE ENTRY
\DeclareFieldFormat*{pages}{#1}
%%%%%%%
\renewbibmacro*{cite:title}{%
\ifsingletitle{\usebibmacro{cite:opcit}}{%
\printtext[bibhyperlink]{%
\printfield[citetitle]{labeltitle}%
\iftoggle{cbx:commacit}{\setunit{\addcomma\space}}%
{\setunit{\addspace\midsentence}}}}}
\usepackage{amstext}
\newcommand{\textunderscript}[1]{$_{\text{#1}}$} %underscript per numeri accadico
\begin{document}
MU.37.KAM\textsubscript{2} man-ti u mse-lu ITU.ŠE 9 LU\textsubscript{2}.mu-ma-'i-ir
KUR URI.KI u LU\textsubscript{2}.paq-du. ⸢MEŠ⸣
ša\textsubscript{2} LUGAL ša\textsubscript{2} ina ⸢MU.36⸣.KAM\textsubscript{2} ana KUR sa-par-du ana
UGU LUGAL GIN-uʾ
\end{document}
答案1
分隔符號被命名為右上角/左上角:
\ulcorner
和\urcorner
從包裝中amssymb
偶然發現:https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols
答案2
下面的解決方案使用amsmath
( \ensuremath
and \text
)、amssymb
(for \lceil
and \rceil
) 和bm
(for \bm
) 套件來建立名為 的巨集\ceilbrackets
。
\documentclass{article}
\usepackage{xcolor} % for "\textcolor" macro
\usepackage{amsmath,amssymb,bm}
\newcommand\ceilbrackets[1]{\ensuremath{%
{}^{\scriptscriptstyle\bm{\lceil}}\mkern-1mu%
\text{#1}%
{}^{\scriptscriptstyle\bm{\rceil}}}}
\begin{document}
\textcolor{blue}{\ceilbrackets{ME\v S}}, \ceilbrackets{MU.36}
\end{document}