Research Bazaar Arizona 2021
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- tags: ResBaz2021 --- # Intro to LaTeX ### Wednesday, May 19th, 2021 1\:00-3\:00 [Back to Resbaz HackMD Directory](https://hackmd.io/@ResBaz21/directory) It's fun to code things for computers to read, so why not code things for humans to read, too? With the LaTeX typesetting system, you can code professional quality equations, tables, figures, verse, novellas, and much more. LaTeX offers many of the advantages of programming other steps of the research process: automation, customization, and replicability. Even better, using LaTeX means you can do the hard work (writing the thing) in your favorite plain text editor. This workshop will emphasize the skills you need to get started producing a basic manuscript for an academic article or essay. ## Getting Started ### Install LaTeX, or sign up for an online editor Three modes for running LaTeX will work for this tutorial: 1. Run it online on ~~https://latexbase.com,~~ https://papeeria.com/ or https://www.overleaf.com/. These sites require you to create an account. ~~The free version of latexbase.com does not require an account and is suitable for this tutorial.~~ (Correction: latexbase.com does *not* have the capabilities needed for this tutorial.) This is a good option if you're dropping in on this tutorial at the last minute, or you don't have time to download and install the full program. 2. Install it on your machine and run it on a LaTeX GUI. Installation should be straightforward, but let the instructor know if you have problems. If you think you might need a TeX distribution at some point, but you don't want to mess around with integrating it into a plain text editor, go for this option. - Mac users: http://www.tug.org/mactex/ This distribution is relatively large because it includes an array of supporting packages and other stuff. - Linux users: you probably already have it on your system. You can install it directly here: https://www.tug.org/texlive/quickinstall.html - PC users: https://miktex.org/download This distribution is light because it installs packages "on the fly." When you have the option, your instructor recommends you elect to install all available packages. 5. Install it on your machine and run it from within Emacs or Atom. This is the best option if you're looking to integrate LaTeX editing into your other coding workflows. This is your instructor's preferred mode, but it can be more complicated to get started. - Install the appropriate distribution as described in step 2. - Install the LaTeX package for [Atom](https://atom.io/packages/latex) or make sure you have AucTeX installed in [Emacs](http://statweb.stanford.edu/~naras/lunches/f96/talk4/talk.html). ### Run a quick test document Once you have chosen your mode of running LaTeX, try to do the following (skip to step 2 if you're using an online distribution): 1. Depending on your distribution, open your LaTeX GUI, Emacs, or Atom: - MacTeX (Mac) users: open the "TeXShop" GUI - MikTeX (PC) users: open the "miktex-texworks" GUI - Linux users: You can use either of the GUIs above, or use Atom or Emacs. - Plain text zealots: Run Emacs or Atom and save a blank document called "test.tex" to an empty folder. 2. Copy and paste the code below: ``` \documentclass{article} \usepackage[margin = 2in]{geometry} \begin{document} \pagenumbering{gobble} \centering \vspace*{\fill} Hello world%? \[ P_{ij} = \sum^{g}_{k = 1}A_{ki}A_{kj} \] \vspace*{\fill} \end{document} ``` Hit either "Typeset" (TeXShop), the green play button (TeXworks), or wait for the page to refresh (online distribution). If you're using a plain text editor, you'll need to save the document, then compile (C-c C-c in Emacs, or ctrl-alt-b in Atom). After a moment or two, a pdf page will appear. You should see "Hello world" and an equation centered (vertically and horizontally) on an otherwise blank page, without the question mark or page numbering. You may notice that a number of "auxiliary" files are produced along with the pdf. This is expected. While the document compiles, TeXworks users may be asked if they want to install the "geometry" package. They should answer in the affirmative. If you have problems, feel free to contact the instructor: peterore@email.arizona.edu --- ## Introductions - Peter Ore (instructor) - UA Sociology grad student - peterore@email.arizona.edu - @peter__ore on Twitter - I taught myself LaTeX over the last five years or so because I was sick of the alternatives, especially when formatting complex documents - Feel free to introduce yourself here. It would be especially useful if you briefly state the following: - affiliations - experience with LaTeX - what you're looking for in this tutorial - Rene Dario Herrera (they/them), - University of Arizona Cancer Center, - some experience using LaTeX adjacent technologies like R Markdown and Pandoc - how can I add my bibliography to my document? ## Questions and Answers In this section, you can post your questions and feel free to answer if you have it. Questions will be answered during or after the workshop. 1. Ask your question. - Here is an answer --- :::info **Session Feedback :mega:** Use the link below to provide your feedback on the session: [**Session Feedback Form**](https://forms.gle/TrnJpr9qRBEKdnVVA) :::

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully