{"id":14980900,"url":"https://github.com/basemax/texsample","last_synced_at":"2026-03-09T01:33:59.835Z","repository":{"id":151535617,"uuid":"180240980","full_name":"BaseMax/TexSample","owner":"BaseMax","description":"A guide document with some example file for Tex, Latex.","archived":false,"fork":false,"pushed_at":"2022-04-21T07:34:12.000Z","size":14890,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-06T12:56:21.654Z","etag":null,"topics":["bash","bash-script","latex","latex-document","latex-examples","latex-persian","latex-sample","latex-xepersian","tex","tex-distribution","tex-examples","tex-files","tex-persian","tex-xepersian","xepersian"],"latest_commit_sha":null,"homepage":null,"language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-08T22:14:35.000Z","updated_at":"2025-01-30T14:15:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea6f1542-2b5c-4ce8-9227-88f7abc517aa","html_url":"https://github.com/BaseMax/TexSample","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"eb1ed0c6540bab89d4b96fc4b689dd4a32bbbb56"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/TexSample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FTexSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FTexSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FTexSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FTexSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/TexSample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FTexSample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273919384,"owners_count":25191205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","bash-script","latex","latex-document","latex-examples","latex-persian","latex-sample","latex-xepersian","tex","tex-distribution","tex-examples","tex-files","tex-persian","tex-xepersian","xepersian"],"created_at":"2024-09-24T14:02:34.060Z","updated_at":"2026-03-09T01:33:59.774Z","avatar_url":"https://github.com/BaseMax.png","language":"TeX","readme":"# Tex Sample\n\nA guide document with some example file for Tex, Latex.\n\n## What is Tex\n\n**TeX** (/tɛx, tɛk/, see below), stylized within the system as TeX, is a typesetting system (or \"formatting system\") which was designed and mostly written by Donald Knuth and released in 1978.\n\nTeX is a popular means of typesetting complex mathematical formulae; it has been noted as one of the most sophisticated digital typographical systems. \n\n[Click here to read more.](https://en.wikipedia.org/wiki/TeX)\n\n\n## What is Latex\n\nLaTeX is a **typesetting system** used to create technical and scientific documents. It is an alternative to word processing, with an emphasis on content over appearance.\n\nLaTeX is free software under the terms of the LaTeX Project Public License (LPPL). LaTeX is distributed through CTAN servers or comes as part of many easily installable and usable TeX distributions provided by the TeX User Group (TUG) or third parties. If you run into trouble, visit the help section.\n\nLaTeX is not a stand-alone typesetting program in itself, but document preparation software that runs on top of Donald E. Knuth's TeX typesetting system. TeX distributions usually bundle together all the parts needed for a working TeX system and they generally add to this both configuration and maintenance utilities. Nowadays LaTeX, and many of the packages built on it, form an important component of any major TeX distribution.\n\n## Getting LaTeX\n\nLatex is introduced in a package called MiKTeX, ProTeXt, TeXLive, MacTeX.\n\nYou can download and install it for your proper operating system.\n\n[Get started to work with latex](https://www.latex-project.org/get/)\n\n### Arch Linux\n\nMy system is Arch, Linux :\n```\nLinux Base 5.0.5-arch1-1-ARCH #1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019 x86_64 GNU/Linux\n```\n\n#### Latex packages for Arch\n\n- texlive-bibtexextra\n- texlive-bin\n- texlive-core\n- texlive-fontsextra\n- texlive-formatsextra\n- texlive-games\n- texlive-humanities\n- texlive-langchinese\n- texlive-langcyrillic\n- texlive-langextra\n- texlive-langgreek\n- texlive-langjapanese\n- texlive-langkorean\n- texlive-latexextra\n- texlive-music\n- texlive-pictures\n- texlive-pstricks\n- texlive-publishers\n- texlive-science\n\n-----------\n\nWe will need to install the **texlive-langextra** if we want to use **XePersian** package or languages like **Persian**.\n\nYou can run the [build-arch.sh](https://github.com/BaseMax/TexSample/blob/master/build-arch.sh) script file.\n```\n$ bash build-arch.sh\n```\n\n### Font Support\n\nIf the language you want is out of the standard, you need to install the package. (All packages are in the build-arch.sh script file)\n\nHowever, if you want to install a new font and use it in this environment, you must put the font file (eg ttf) in the folder `~/.local/share/fonts`. (e.g: /home/max/.local/share/fonts)\n\n----------\n\nSome persian fonts has created to use in some place like latex.\n\nUsually they has `XB` prefix.\n\nDownload all fonts as [ZIP archive](https://github.com/BaseMax/TexSample/raw/master/XB-Fonts.zip).\n\n```\ncd ~/.local/share/fonts\nwget https://github.com/BaseMax/TexSample/raw/master/XB-Fonts.zip\nunzip XB-Fonts.zip\n```\n\n## Getting Start to programming\n\n#### Structure\n\n#### Codes\n\n```\n\\documentclass{\u003ctype\u003e}\n```\n\n```\n\\begin{document}\n\u003cany\u003e\n\\end{document}\n```\n\n```\n\\section{\u003cvalue\u003e} \n```\n\n```\n% \u003cany things as comment\u003e \n```\n\n#### Example\n\n```\n\\documentclass{article}\n\\begin{document}\n\\section{Hello World} \n\nI'm Max.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Egestas purus viverra accumsan in nisl nisi. Arcu cursus vitae congue mauris rhoncus aenean vel elit scelerisque. In egestas erat imperdiet sed euismod nisi porta lorem mollis. Morbi tristique senectus et netus. Mattis pellentesque id nibh tortor id aliquet lectus proin. Sapien faucibus et molestie ac feugiat sed lectus vestibulum. Ullamcorper velit sed ullamcorper morbi tincidunt ornare massa eget. Dictum varius duis at consectetur lorem. Nisi vitae suscipit tellus mauris a diam maecenas sed enim. Velit ut tortor pretium viverra suspendisse potenti nullam. Et molestie ac feugiat sed lectus. Non nisi est sit amet facilisis magna. Dignissim diam quis enim lobortis scelerisque fermentum. Odio ut enim blandit volutpat maecenas volutpat. Ornare lectus sit amet est placerat in egestas erat. Nisi vitae suscipit tellus mauris a diam maecenas sed. Placerat duis ultricies lacus sed turpis tincidunt id aliquet.\n\n\\end{document} \n```\n\n![View result page](https://raw.githubusercontent.com/BaseMax/TexSample/master/test0.png)\n\n-------------\n\n```\n% I read these from a page.\n% WARNING!  Do not type any of the following 10 characters except as directed:\n%                \u0026   $   #   %   _   {   }   ^   ~   \\   \n\n\\documentclass{article}\n\\begin{document}\n\t\n\t\\section{Simple Text}\n\t\n\tWords are separated by one or more spaces.  Paragraphs are separated by\n\tone or more blank lines.  The output is not affected by adding extra\n\tspaces or extra blank lines to the input file.\n\t\n\tDouble quotes are typed like this: ``quoted text''.\n\tSingle quotes are typed like this: `single-quoted text'.\n\t\n\tLong dashes are typed as three dash characters---like this.\n\t\n\tEmphasized text is typed like this: \\emph{this is emphasized}.\n\tBold       text is typed like this: \\textbf{this is bold}.\n\t\n\t\\subsection{A Warning or Two} \n\t\n\tIf you get too much space after a mid-sentence period---abbreviations\n\tlike etc.\\ are the common culprits)---then type a backslash followed by\n\ta space after the period, as in this sentence.\n\t\n\tRemember, don't type the 10 special characters (such as dollar sign and\n\tbackslash) except as directed!  The following seven are printed by\n\ttyping a backslash in front of them:  \\$  \\\u0026  \\#  \\%  \\_  \\{  and  \\}.  \n\tThe manual tells how to make other symbols.\n\t\n\\end{document}\n```\n![View result page](https://raw.githubusercontent.com/BaseMax/TexSample/master/test1.png)\n\n---------\n\n### Code Highlighting\n\n- https://www.overleaf.com/learn/latex/Code_Highlighting_with_minted\n- https://stackoverflow.com/questions/300521/latex-package-to-do-syntax-highlighting-of-code-in-various-languages\n- http://2ality.com/2011/11/custom-latex.html\n- https://tex.stackexchange.com/questions/380799/warning-when-adding-package-minted?noredirect=1\u0026lq=1\n- https://tex.stackexchange.com/questions/23458/how-to-install-syntax-highlight-package-minted-on-windows-7\n\n```\n[max@base source]$ yaourt minted\n1 community/minted 2.5-1\n    Syntax highlighted source code for LaTeX\n1\n==\u003e Enter n° of packages to be installed (e.g., 1 2 3 or 1-3)\n==\u003e ---------------------------------------------------------\n==\u003e \n[sudo] password for max: \n```\n\n\n```\n[max@base source]$ yaourt pygments\n1 community/python-pygments 2.4.2-1 [installed]\n    Python syntax highlighter\n2 community/python2-pygments 2.4.2-1\n    Python syntax highlighter\n```\n\n### Extra Tools\n\n- https://github.com/plk/biber\n- https://www.archlinux.org/packages/community/any/biber/\n\n### Online Service\n\n- https://latexbase.com/\n- https://papeeria.com/\n- https://www.overleaf.com/ (7 day free to sync with git, github,...)\n- https://www.sharelatex.com/\n- https://www.datazar.com/\n\n## Reference\n\n- https://www.latex-project.org/\n- https://www.tug.org/svn/texlive/\n- https://github.com/latex3\n\n---------\n\n# Max Base\n\nMy nickname is Max, Programming language developer, Full-stack programmer. I love computer scientists, researchers, and compilers. ([Max Base](https://maxbase.org/))\n\n## Asrez Team\n\nA team includes some programmer, developer, designer, researcher(s) especially Max Base.\n\n[Asrez Team](https://www.asrez.com/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ftexsample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Ftexsample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ftexsample/lists"}