Something went wrong. Try again.
Sample Portfolio Website using HUGO decoded-cipher.github.io
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270<!DOCTYPE html><html lang="en">
<head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Language" content="en"> <meta name="color-scheme" content="light dark">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests; block-all-mixed-content; default-src 'self'; child-src 'self'; font-src 'self' https://fonts.gstatic.com https://cdn.jsdelivr.net/; form-action 'self'; frame-src 'self'; img-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/ https://cdn.jsdelivr.net/; script-src 'self' 'unsafe-inline' https://www.google-analytics.com; prefetch-src 'self'; connect-src 'self' https://www.google-analytics.com;">
<meta name="author" content="Arjun Krishna"> <meta name="description" content="Um guia rápido sobre utilizar KaTeX"> <meta name="keywords" content="blog,developer,personal">
<meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Configuração de Equações Matemáticas"/><meta name="twitter:description" content="Um guia rápido sobre utilizar KaTeX"/>
<meta property="og:title" content="Configuração de Equações Matemáticas" /><meta property="og:description" content="Um guia rápido sobre utilizar KaTeX" /><meta property="og:type" content="article" /><meta property="og:url" content="https://decoded-cipher.github.io/posts/math-typesetting.pt-br/" /><meta property="article:section" content="posts" /><meta property="article:published_time" content="2019-03-08T00:00:00+00:00" /><meta property="article:modified_time" content="2019-03-08T00:00:00+00:00" />
<title> Configuração de Equações Matemáticas · decoded-cipher</title>
<link rel="canonical" href="https://decoded-cipher.github.io/posts/math-typesetting.pt-br/">
<link rel="preload" href="/fonts/forkawesome-webfont.woff2?v=1.2.0" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="/css/coder.min.93c41bf1e522f85ecda7355985f09000f71fc1d64dda9f74051b0fa06210e93f.css" integrity="sha256-k8Qb8eUi+F7NpzVZhfCQAPcfwdZN2p90BRsPoGIQ6T8=" crossorigin="anonymous" media="screen" />
<link rel="stylesheet" href="/css/coder-dark.min.f37febc669ce189201c1918fac1948a254686c8d366a312c2d72b2bb71ad97d1.css" integrity="sha256-83/rxmnOGJIBwZGPrBlIolRobI02ajEsLXKyu3Gtl9E=" crossorigin="anonymous" media="screen" />
<link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16">
<link rel="apple-touch-icon" href="/images/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<meta name="generator" content="Hugo 0.84.0" /> </head>
<body class="preload-transitions colorscheme-auto" onload="" > <div class="float-container"> <a id="dark-mode-toggle" class="colorscheme-toggle"> <i class="fa fa-adjust fa-fw" aria-hidden="true"></i> </a></div>
<main class="wrapper"> <nav class="navigation"> <section class="container"> <a class="navigation-title" href="/"> decoded-cipher </a> <input type="checkbox" id="menu-toggle" /> <label class="menu-button float-right" for="menu-toggle"> <i class="fa fa-bars fa-fw" aria-hidden="true"></i> </label> <ul class="navigation-list"> <li class="navigation-item"> <a class="navigation-link" href="/about/">About</a> </li> <li class="navigation-item"> <a class="navigation-link" href="/posts/">Blog</a> </li> <li class="navigation-item"> <a class="navigation-link" href="/projects/">Projects</a> </li> <li class="navigation-item"> <a class="navigation-link" href="/contact/">Contact me</a> </li> </ul> </section></nav>
<div class="content"> <section class="container post"> <article> <header> <div class="post-title"> <h1 class="title"> <a class="title-link" href="https://decoded-cipher.github.io/posts/math-typesetting.pt-br/"> Configuração de Equações Matemáticas </a> </h1> </div> <div class="post-meta"> <div class="date"> <span class="posted-on"> <i class="fa fa-calendar" aria-hidden="true"></i> <time datetime='2019-03-08T00:00:00Z'> March 8, 2019 </time> </span> <span class="reading-time"> <i class="fa fa-clock-o" aria-hidden="true"></i> One-minute read </span> </div> </div> </header>
<div> <p>Em um projeto Hugo as Notações Matemáticas podem ser usadas com a ajuda de bibliotecas JavaScript de terceiros.</p><p>Nesse exemplo usaremos o <a href="https://katex.org/">KaTeX</a>.</p><ul><li>Crie um partial template em <code>/layouts/partials/math.html</code></li><li>Dentro, utilize o <a href="https://katex.org/docs/autorender.html">Auto-render Extension</a> ou sirva os scripts localmente.</li><li>Inclua o partial nos seus templates da seguinte forma:</li></ul><div class="highlight"><pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">{{ <span style="font-weight:bold">if</span> or .Params.math .Site.Params.math }}{{ partial <span style="font-style:italic">"math.html"</span> . }}{{ end }}</code></pre></div><ul><li>Para ativar o KaTex globalmente defina o parâmetro <code>math</code> como <code>true</code> na confgiuração do projeto</li><li>Para ativar o KaTex em páginas específicas inclua o parâmetro <code>math: true</code> nos arquivos de conteúdo</li></ul><p><strong>Nota:</strong> Use a referência online <a href="https://katex.org/docs/supported.html">Supported TeX Functions</a> como base para criar notações matemáticas.</p>
<h3 id="examples"> Examples <a class="heading-link" href="#examples"> <i class="fa fa-link" aria-hidden="true"></i> </a></h3>
<p>Notação em bloco:$$\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }$$</p> </div>
<footer>
</footer> </article>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> <script> MathJax = { tex: { inlineMath: [ ['$', '$'], ['\\(', '\\)'] ], processEscapes: true, processEnvironments: true }, options: { skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'] } }; </script> </section>
</div>
<footer class="footer"> <section class="container"> <p>Enter a text here.</p> © 2019 - 2021 Arjun Krishna · Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>. </section> </footer>
</main>
<script src="/js/coder.min.235666b114443867d43eeb5799d51f6252965e5163f338285e113fa381d3d27e.js" integrity="sha256-I1ZmsRREOGfUPutXmdUfYlKWXlFj8zgoXhE/o4HT0n4="></script>
</body>
</html>