{ "cells": [ { "cell_type": "markdown", "id": "569d23d0", "metadata": {}, "source": [ "# latex\n", "\n", "\n", "\n", "\n", "**Author:** Rene Brun \n", "This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Tuesday, May 19, 2026 at 08:37 PM." ] }, { "cell_type": "code", "execution_count": 1, "id": "c2fbf4bb", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:11.929246Z", "iopub.status.busy": "2026-05-19T20:37:11.929052Z", "iopub.status.idle": "2026-05-19T20:37:12.282523Z", "shell.execute_reply": "2026-05-19T20:37:12.282089Z" } }, "outputs": [], "source": [ "TCanvas *c1 = new TCanvas(\"c1\", \"test\", 600, 700);" ] }, { "cell_type": "markdown", "id": "f4819c03", "metadata": {}, "source": [ "write formulas" ] }, { "cell_type": "code", "execution_count": 2, "id": "ac0b9f10", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:12.294172Z", "iopub.status.busy": "2026-05-19T20:37:12.294041Z", "iopub.status.idle": "2026-05-19T20:37:12.502200Z", "shell.execute_reply": "2026-05-19T20:37:12.501628Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "
\n", "
\n", "\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stderr", "output_type": "stream", "text": [ "Info in : ps file latex.ps has been created\n" ] } ], "source": [ "TLatex l;\n", "l.SetTextAlign(12);\n", "l.SetTextSize(0.04);\n", "l.DrawLatex(0.1, 0.9, \"1) C(x) = d #sqrt{#frac{2}{#lambdaD}}\\\n", "#int^{x}_{0}cos(#frac{#pi}{2}t^{2})dt\");\n", "l.DrawLatex(0.1, 0.7, \"2) C(x) = d #sqrt{#frac{2}{#lambdaD}}\\\n", "#int^{x}cos(#frac{#pi}{2}t^{2})dt\");\n", "l.DrawLatex(0.1, 0.5, \"3) R = |A|^{2} = #frac{1}{2}#left(#[]{#frac{1}{2}+\\\n", "C(V)}^{2}+#[]{#frac{1}{2}+S(V)}^{2}#right)\");\n", "l.DrawLatex(0.1, 0.3, \"4) F(t) = #sum_{i=-#infty}^{#infty}A(i)cos#[]{#frac{i}{t+i}}\");\n", "l.DrawLatex(0.1, 0.1, \"5) {}_{3}^{7}Li\");\n", "c1->Print(\"latex.ps\");" ] }, { "cell_type": "markdown", "id": "f7eb76d7", "metadata": {}, "source": [ "Draw all canvases " ] }, { "cell_type": "code", "execution_count": 3, "id": "fd133389", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:12.505547Z", "iopub.status.busy": "2026-05-19T20:37:12.505418Z", "iopub.status.idle": "2026-05-19T20:37:12.722400Z", "shell.execute_reply": "2026-05-19T20:37:12.721795Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "
\n", "
\n", "\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "gROOT->GetListOfCanvases()->Draw()" ] } ], "metadata": { "kernelspec": { "display_name": "ROOT C++", "language": "c++", "name": "root" }, "language_info": { "codemirror_mode": "text/x-c++src", "file_extension": ".C", "mimetype": " text/x-c++src", "name": "c++" } }, "nbformat": 4, "nbformat_minor": 5 }