This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\begin{document} | |
\begin{table}[h] | |
\centering | |
\begin{tabular}{|l|c|} | |
\hline | |
Pittsburgh & 100 \\ | |
\hline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{tikz} | |
\usepackage[utf8]{inputenc} | |
\usepackage{amsmath} | |
\begin{document} | |
\begin{tikzpicture} | |
% Draw ovals first | |
\fill[red!50] (0, 0.8) ellipse (6cm and 3.8cm); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{book} % Assuming a book class is appropriate for chapters | |
\usepackage{titlesec} % Required for title formatting | |
\titleformat{\chapter} % Corrected command | |
[display] | |
{\normalfont\bfseries\huge} | |
{Chapter \thechapter} | |
{0pt} % Corrected spacing option | |
{\vspace{2\baselineskip}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Original Tex question at: | |
% https://tex.stackexchange.com/questions/730485/difficulty-changing-legend-marker-and-resizing-in-pgfplots | |
\documentclass{article} | |
\usepackage{pgfplots} | |
\usepackage{amsmath} | |
\pgfplotsset{compat=1.18} | |
\usepackage{pdflscape} | |
\begin{document} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{tcolorbox} | |
\newtcolorbox{shadedsection}[1][]{ % Custom box with options / Caja personalizada con opciones | |
colback=blue!20, % Background color of the box / Color de fondo de la caja | |
colframe=blue!50, % Border color of the box / Color del borde de la caja | |
boxrule=0pt, % Border thickness (0pt = no border) / Grosor del borde (0pt = sin borde) | |
width=\textwidth, % Box width, same as the text width / Ancho de la caja, igual al ancho del texto | |
sharp corners, % No rounded corners / Sin esquinas redondeadas | |
left=0pt, right=0pt, top=2pt, bottom=2pt, % Padding / Relleno |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% In response to the stackexchange question: https://tex.stackexchange.com/questions/680066/customising-gradetable-to-group-multiple-choice-into-1-column-with-the-exam-cl | |
% You can compile and view the pdf version of this Latex document at: https://crixet.com/?gist=d433f7deda0eb630dad9b98bb3b281b9 | |
\documentclass[addpoints]{exam} | |
\usepackage{tabularx} | |
\usepackage{xcolor} | |
\usepackage{multicol} | |
\begin{document} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Original question on Reddit: https://www.reddit.com/r/LaTeX/comments/1gi75el/these_commands_arent_working_any_help/ | |
% To view the source code or fork it, see: https://gist.github.com/vicapow/fd736f10b9382e924875f4e093a63d33 | |
% Note, you may need to compile twice to ensure the refernces get updated completely. | |
\documentclass{article} | |
\usepackage{amsmath} % Required for split and align environments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async function() { | |
async function fetchData(date) { | |
var date_split = date.split('-'), | |
year = date_split[0], | |
month = date_split[1], | |
day = date_split[2]; | |
if (parseInt(day) < 10){ | |
day = parseInt(day); | |
} | |
month = parseInt(month) - 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
using namespace std; | |
struct A { | |
int * ptr; | |
A() { | |
cout << "Constructor" << endl; | |
ptr = new int; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function transformer(file, api) { | |
const j = api.jscodeshift; | |
const root = j(file.source); | |
let body; | |
root.find(j.Program).map(program => { | |
body = program.value.body; | |
}); | |
const lodashImports = root |