Неразбиващо се пространство в LaTex: Как да се покаже специалният символ
Свързани Видеоклипове: (Септември 2024).
Защитеното пространство в LaTeX свързва думи и знаци, които трябва да останат заедно, когато се прекъсне ред. Ако например спецификацията "2 kg" се комбинира със защитено пространство, "2" се плъзга в новата линия, ако единицата "kg" вече не пасва на линията пред нея. В тази статия ще научите как да вмъкнете нечупливо пространство в LaTeX.
Защитени пространства в LaTeX - как работи
В моя бягащ текст полезен за използване на нечупливо пространство. В никакъв случай имената (Б. Брехт) и физическата информация (2 м) не се разделят един от друг, когато се прекъсне линия.
- За да вмъкнете интервал без прекъсване в име, просто добавете тилда (~) вместо интервала: B. ~ Brecht. В този случай се уверете, че няма място преди и след тилда.
- За математическа или физическа информация, от една страна, номерът не трябва да бъде отделен от единицата (2 кг), от друга, разстоянието между тях трябва да е по-тясно, отколкото при нормално пространство. Можете да зададете половината защитено празно пространство с командата "\, ": 2 \, kg.
В следващата статия ще ви покажем как можете да използвате LaTeX за индекс и номера на подпис.