Hướng dẫn làm giảm kích thước hình ảnh trong texstudio năm 2024

Văn học Việt Nam nửa đầu thế kỉ XX được xem là giai đoạn “giao thời”, với sự đấu tranh giữa thơ Cũ và thơ Mới, giữa truyền thống và cách tân, tồn tại nhiều khuynh hướng, dòng phái khác nhau. Từ góc độ thể loại, không ít người cho đây là thời điểm thơ tự do thắng thế, thơ Đường luật nói chung bị xem là hết mùa, lỗi thời. Song vẫn còn đó một minh chứng hùng hồn cho sự hiện diện của thơ Nôm Đường luật Việt Nam ở nửa đầu thế kỉ XX, đó là Nôm Đường luật Phan Bội Châu. Bài viết trên cơ sở chỉ ra một vài đặc điểm về ngôn ngữ trong thơ Nôm Đường luật Phan Bội Châu thời kỳ ở Huế, từ đó cho thấy những đổi mới, cách tân của Phan Sào Nam trong việc sử dụng thể thơ truyền thống của dân tộc.

Bài này sẽ giới thiệu các cách điều chỉnh định dạng chữ cơ bản, cũng như một số câu lệnh để tùy biến các khoảng trống trong văn bản.

Khoảng cách giữa các đoạn văn

Ta đã biết rằng một dòng trống có công dụng ngắt đoạn trong LaTeX. Dòng đầu tiên của đoạn văn mới sẽ được lùi đầu dòng một chút. Tuy nhiên, nhiều người không muốn lùi đầu dòng mà muốn có một khoảng trống nhỏ giữa các đoạn. Ta có thể làm được điều đó bằng gói parskip.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[parfill]{parskip}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}

Buộc xuống dòng

Trong hầu hết các trường hợp, ta không nên buộc LaTeX phải ngắt dòng giữa đoạn văn; thay vào đó ta nên dùng một dòng trống để sang một đoạn văn mới.

Tuy nhiên có một số trường hợp ta dùng \ để ngắt dòng mới mà không cần phải bắt đầu một đoạn văn mới:

  • Tại điểm cuối của một hàng trong bảng
  • Trong môi trường center
  • Ngắt dòng khi viết thơ (với môi trường verse)

Hầu như trong mọi trường hợp, nếu bạn không ở trong những tình huống trên, bạn không nên dùng \.

Thêm một khoảng trống có kích thước cụ thể

Ta có thể thêm một khoảng trống nhỏ (bằng khoảng nửa một ký tự trống thông thường) bằng

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

0. Trong chế độ toán, ta còn có các lệnh khác như

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

1,

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

2 hay

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

3, hay thậm chí

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

4 sẽ tạo ra một khoảng trống có ‘độ rộng âm’.

Trong số ít trường hợp, ví dụ khi ta tạo trang bìa, ta cần phải thêm những khoảng trống có kích thước cụ thể. Ta có thể dùng

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

5 (khoảng trống theo chiều ngang) và

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

6 (khoảng trống theo chiều dọc).

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

Định dạng các chữ một cách cụ thể

Trong một bài trước, ta thấy rằng trong hầu hết trường hợp các markup logic nên được sử dụng. Tuy nhiên đôi khi ta muốn làm cho chữ đậm, nghiêng hay đổi font chữ thành monospace, v.v… Có hai loại câu lệnh khác nhau để thực hiện điều này: một loại được dùng cho các đoạn chữ ngắn, loại kia được dùng cho các đoạn chữ dài hơn.

Cho các đoạn chữ ngắn, ta dùng

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

7 (chữ đậm),

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

8 (chữ nghiêng),

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Some text \hspace{1cm} more text.
\vspace{10cm}
Even more text.
\end{document}

9 (chữ thẳng),

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

0 (chữ theo font sans),

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

1 (chữ theo font monospace) và

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

2 (chữ theo font small-caps).

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

Cho các đoạn dài hơn, ta dùng một lệnh thay đổi setup của font.

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

3 hay

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

4 là các ví dụ. Ta cần đưa đoạn chữ vào trong một nhóm để ngăn việc thay đổi setup này ảnh hưởng đến phần sau của văn bản. Các môi trường trong LaTeX đều là các nhóm khác nhau; mỗi ô bảng cũng là một nhóm; hay ta có thể dùng

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

5 để tạo ra một nhóm cụ thể.

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Normal text.
{\itshape
This text is italic.
So it this: the effect is not limited to a paragraph.
}
\end{document}

Ta có thể thay đổi cỡ chữ theo cách tương tự. Các câu lệnh thường gặp là

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

6 (chữ rất to),

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

7 (chữ to),

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

8 (cỡ chữ mặc định),

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

9 (chữ nhỏ) và

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Normal text.
{\itshape
This text is italic.
So it this: the effect is not limited to a paragraph.
}
\end{document}

0 (chữ nhỏ hơn). Chúng sẽ thay đổi cỡ chữ một cách tương đối theo cỡ chữ mặc định của văn bản; nói cách khác

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

9 khi bạn dùng tùy biến

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Normal text.
{\itshape
This text is italic.
So it this: the effect is not limited to a paragraph.
}
\end{document}

2 cho lớp văn bản sẽ lớn hơn

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

9 khi bạn dùng tùy biến

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Normal text.
{\itshape
This text is italic.
So it this: the effect is not limited to a paragraph.
}
\end{document}

4. Chú ý rằng ta cần phải kết thúc một đoạn văn trước khi chuyển cỡ chữ lại như bình thường – bạn có thể xem lệnh

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Normal text.
{\itshape
This text is italic.
So it this: the effect is not limited to a paragraph.
}
\end{document}

5 dùng để kết thúc đoạn (khá tương đương với một dòng trống) được dùng ở ví dụ sau.

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Normal text.
\begin{center}
{\itshape\large Some text\par}
Normal text
{\bfseries\small Much smaller text\par}
\end{center}
\end{document}

Bài tập

Thử thao tác với việc định dạng chữ. Thêm môi trường

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Normal text.
{\itshape
This text is italic.
So it this: the effect is not limited to a paragraph.
}
\end{document}

6 và thử thêm các khoảng trống có kích thước khác nhau và thay đổi kiểu chữ. Điều gì xảy ra khi ta lồng các lệnh đổi kiểu chữ với nhau? Điều này khác trong chế độ toán ra sao?

Điều gì xảy ra nếu bạn thay đổi cỡ chữ một đoạn văn dài (thử với

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Normal text.
{\itshape
This text is italic.
So it this: the effect is not limited to a paragraph.
}
\end{document}

7 (rất nhỏ) rồi thử với

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Let's have some font fun: \textbf{bold}, \textit{italic}, \textrm{roman},
\textsf{sans serif}, \texttt{monospaced} and \textsc{small caps}.
\end{document}

  1. nhưng không dùng

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Normal text.
{\itshape
This text is italic.
So it this: the effect is not limited to a paragraph.
}
\end{document}

5 khi kết thúc nhóm?