Code Snippets for Slides

Title Page

<section data-transition="fade" data-background="#000">
  <h2 class="title">{{ page.title }}</h2>
  <br>&nbsp;<br>
  <p class="title">
  Murat Kahveci (@iMuratKahveci)
  <br>
  Loyola University Chicago
  <br>
  {{ page.date | date: "%-d %b %Y" }}
  <br>
  {{ page.event }}
  <br>
  {{ page.venue }}
  </section>

Content Page

<section>
  <h3>Theoretical Framework</h3>
    <p>
      Development of the Original STPD Scale (Southerland et al., 2012)
      <ul>
        <li>Item 1</li>
      </ul>
    </p>
    <img class="stretch" data-src="/images/talks/liv/01.jpg">
    <div class="citation">
      <a href="/dgq">kahveci.pw/dgq</a>
    </div>
</section>

Adding an Image

  1. Image Type:
    • Photos: Generally, JPG is a good choice for photographs due to its smaller file size.
    • Graphics, logos, and images with text: PNG is preferred for its lossless compression and transparency support.
  2. Aspect Ratio:

    • Standard Screens: Most screens these days are widescreen (16:9 aspect ratio). Aim for images that fit this nicely to avoid black bars or distortion.
    • Presentation Environment: If you know the exact screen size where your presentation will be displayed, you can tailor your image dimensions to perfectly match.
  3. Resolution:

    • High Resolution is Key: Use images with a resolution of at least 1920x1080 pixels. This ensures your visuals look sharp on large screens.
    • Avoid Upscaling: Don’t enlarge small images, as they’ll become pixelated and blurry.
    • Commandline Tools: Use the following scaling for consistency.
     
     sips -Z 1920 *.jpg
     
     
     
     sips -Z 1920 *.png
     
     

Stretched Image

<section>
	<h3>Theoretical Framework: Development of the Original STPD Scale</h3>
	<img class="stretch" data-src="/images/talks/liv/01.jpg">
	<div class="citation">
		<a href="/dgq">kahveci.pw/dgq</a>
	</div>
</section>

Regular Image

<section>
	<h3>Theoretical Framework: Development of the Original STPD Scale</h3>
	<img data-src="/images/talks/liv/01.jpg">
	<div class="citation">
		<a href="/dgq">kahveci.pw/dgq</a>
	</div>
</section>

Citations

	<div class="citation">
		<a href="/dgq">kahveci.pw/dgq</a>
	</div>

Math Equations

<section>
  <h3>Math Expressions</h3>
  <p>Yes, Reveal.js can beautifully render LaTeX equations!</p>
  <p>$E = mc^2 $</p>
</section>
Figure 1.
Figure 1.. LaTeX code rendering.

Page with table

<section>
  <h3>Strain fitness estimated from viral attributes</h3>
  <p>The fitness $f$ of strain $i$ is estimated as</p>
  <p>$$f_i = \beta^\mathrm{A} \, f_i^\mathrm{A} + \beta^\mathrm{B} \, f_i^\mathrm{B} + \ldots$$</p>
  <p>where $f^A$, $f^B$, etc... are different standardized viral attributes and
    $\beta^A$, $\beta^B$, etc... coefficients are trained based on historical evolution</p>
  <br>
  <table>
    <thead>
      <tr>
        <th width="28%">Antigenic drift</th>
        <th width="38%">Intrinsic fitness</th>
        <th width="33%">Recent growth</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>epitope mutations</td>
        <td>non-epitope mutations</td>
        <td>local branching index</td>
      </tr>
      <tr>
        <td>HI titers</td>
        <td>DMS data (via Bloom lab)</td>
        <td>delta frequency</td>
      </tr>
    </tbody>
  </table>
</section>

Acknowledgements

<section>
	<h3>Acknowledgements</h3>
	<p class="even-smaller">
		<b>Research team</b>
	</p>
	<p class="tiny"><b>Kahveci Nexus</b>:
		<span class="nobreak"><img width=35 class="img-avatar" src="/images/team/murat-kahveci.jpg"> Murat Kahveci,</span> &hairsp;
		<span class="nobreak"><img width=35 class="img-avatar" src="/images/team/ajda-kahveci.png"> Ajda Kahveci,</span> &hairsp;
		<span class="nobreak"><img width=35 class="img-avatar" src="/images/team/nasser-mansour.jpg"> Nasser Mansour,</span> &hairsp;
		<span class="nobreak"><img width=35 class="img-avatar" src="/images/team/maher-alarfaj.jpg"> Maher Mohammed Alarfaj
	</p>

	<div class="pull-right" style="vertical-align: bottom; display: table-cell;">
		<img height="75px" data-src="/images/logo-pub/narst.png">&nbsp; &nbsp;
		<img height="75px" data-src="/images/logo.png">
	</div>
</section>

Color Ramp

To maintain a consistent and eye-catching color scheme throughout your slides, consider using a color ramp based on your website’s primary color, #7F00FF, and gray, #555. Here’s an example of how you might incorporate these colors into your slides:

1. Background Color:

2. Heading Colors:

3. Text Color:

4. Highlight Color:

5. Link Color:

6. Table Colors: