2022年4月27日 星期三

LaTeX 中文檔案格式例子

在 LaTeX 下要編輯中文文件,

在 Ubuntu Linux 下,先安裝 texlive

$ sudo apt install texlive


再安裝中文套件

$ sudo apt install latex-cjk-all


安裝一個編輯器,我選 TexStudio

$ sudo apt install texstudio


以下是一個文件 *.tex 檔的例子:

\documentclass[12pt,a4paper]{article}

\usepackage{CJKutf8}

\title{文章標題}

\author{楚留香\thanks{江湖名士 email: xxoo@aamail.com}}

\date{2022.4}


\begin{document}

\begin{CJK}{UTF8}{bsmi}

\maketitle

\fontsize{12}{20pt}\selectfont


\section{大江東去浪淘盡}

\subsection{第一小節}

大江東去浪淘盡,千古風流人物。


\end{CJK}

\end{document} 

2022年4月10日 星期日

Wordpress 的 Astra 主題:快速入門,彈性,好用

Astra theme 是 WordPress 架站中一個很好用的主題,從它的下載人次和評價就可以看出受觀迎的程度。

Astra theme
https://wordpress.org/themes/astra/

安裝並活化這個主題後,記得下載一個外掛 (plugin) 叫做 Starter Templates,它是專門為了 Astra 主題設計的外掛,可以有幾十種預設的建好的網站樣式可供快速架站。

Starter Templates
https://wordpress.org/plugins/astra-sites/

另外,再安裝 Elementor 這個 plugin,做為編輯的主要工具,搭配起來更順手。

Elementor
https://wordpress.org/plugins/elementor/

有了上面的工具,只要把模版中的圖片和文字,改成自己網站需要的。即使是新手,也能快速做出各種漂亮網站。

在網路上搜尋 Astra theme 教學,可以找到一些教學網站,例如:

Astra 簡介
https://frankknow.com/astra-tutorial/

Elementor 教學
https://frankknow.com/elementor-tutorial/