Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| example [2023/03/09 16:04] – epsatisep | example [2026/02/26 16:57] (current) – epsatisep | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ==== Refnotes Plugin Usage Examples ==== | ==== Refnotes Plugin Usage Examples ==== | ||
| - | These are examples of citations to books [(Thapa2019)] and [(Obayashi2020)], | + | These are examples of citations to books [(Thapa2019)] and [(Obayashi2020)], |
| Please use superscript and subscript annotations to write powers and indexes, //e.g.//, m< | Please use superscript and subscript annotations to write powers and indexes, //e.g.//, m< | ||
| - | |||
| ==== Caption Plugin Usage Examples ==== | ==== Caption Plugin Usage Examples ==== | ||
| Line 36: | Line 35: | ||
| </ | </ | ||
| </ | </ | ||
| - | |||
| - | |||
| Table {{ref> | Table {{ref> | ||
| Line 69: | Line 66: | ||
| </ | </ | ||
| </ | </ | ||
| - | |||
| Figure {{ref> | Figure {{ref> | ||
| - | |||
| <WRAP centeralign> | <WRAP centeralign> | ||
| <figure flabel2> | <figure flabel2> | ||
| Line 83: | Line 78: | ||
| </ | </ | ||
| </ | </ | ||
| - | < | + | < |
| </ | </ | ||
| </ | </ | ||
| Line 97: | Line 92: | ||
| ==== MathJax Plugin Usage Example ==== | ==== MathJax Plugin Usage Example ==== | ||
| - | Equation \ref{eq: | + | Equation \ref{eq: |
| This is an in line expression $a+b=c$. | This is an in line expression $a+b=c$. | ||
| Line 107: | Line 102: | ||
| </ | </ | ||
| - | As [(bandyopadhyay2013unsupervised)] states, the most popular similarity metrics are the distance and the cosine similarity. The distance-based metrics include the Euclidean distance, the Hamming distance or the Chebyshev distance, among others. | + | As [(Bandyopadhyay2013)] states, the most popular similarity metrics are the distance and the cosine similarity. The distance-based metrics include the Euclidean distance, the Hamming distance or the Chebyshev distance, among others. |
| Equation \ref{eq: | Equation \ref{eq: | ||
| Line 118: | Line 113: | ||
| </ | </ | ||
| - | ==== Todo Plugin Usage Example ==== | + | /* |
| + | ==== Todo Plugin Usage Example ==== | ||
| For project management | For project management | ||
| Line 128: | Line 124: | ||
| ~~NOCACHE~~ | ~~NOCACHE~~ | ||
| ~~TODOLIST~~ | ~~TODOLIST~~ | ||
| + | */ | ||
| + | /* | ||
| ==== Task Plugin Usage Example ==== | ==== Task Plugin Usage Example ==== | ||
| Line 146: | Line 143: | ||
| DESCRIPTION: | DESCRIPTION: | ||
| </ | </ | ||
| + | */ | ||
| + | ==== Code Listing Example ==== | ||
| + | The server code is presented in Listing | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | public class CheckersServer { | ||
| + | private static final int PORT = 12345; | ||
| + | private static char[][] board; | ||
| + | private static List< | ||
| + | public static void main(String[] args) { | ||
| + | board = new char[8][8]; | ||
| + | initializeBoard(); | ||
| + | try (ServerSocket serverSocket = new ServerSocket(PORT)) { | ||
| + | System.out.println(" | ||
| + | while (true) { | ||
| + | Socket clientSocket = serverSocket.accept(); | ||
| + | ClientHandler clientHandler = new ClientHandler(clientSocket); | ||
| + | clients.add(clientHandler); | ||
| + | new Thread(clientHandler).start(); | ||
| + | } | ||
| + | } catch (IOException e) { | ||
| + | e.printStackTrace(); | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| ===== Bibliography ====== | ===== Bibliography ====== | ||