LaTeX/C3/Framing-texts-and-Fancybox/English

From Script | Spoken-Tutorial
Revision as of 11:26, 10 November 2025 by Ketkinaina (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Title of the Script: Framing texts and Fancybox

Author: Ambika Vanchinathan

Keywords: LaTeX, fancybox, shadowbox, doublebox, ovalbox, Ovalbox, fbox, video tutorial.


Visual Cue Narration
Slide 1

Title Slide

Welcome to the Spoken tutorial on Framing Texts and Fancybox.
Slide 2

Learning Objectives

In this tutorial , we will learn to
  • Use the fancybox package
  • Add a frame using shadowbox, doublebox, ovalbox, and fbox
  • Frame the text paragraphs and
  • Add a frame to the single and multiline equations
Slide 3

System Requirements

To record this tutorial, I am using:

  • Linux Mint version 21.3
  • Texworks version 0.6.6
To record this tutorial I’m using the following setup.
Slide 4

Pre-requisites

To follow this tutorial, learners should have basic knowledge of LaTeX
Slide 5

Code files

The following code file is required to practice this tutorial:

1. fancybox-eg.tex

This file is provided in the Code Files link of this tutorial page.

The following code file is required to practice this tutorial

This file is provided in the Code Files link of this tutorial page.

Highlight:

Line 4

\usepackage{fancybox}

{fancybox}

\usepackage{fancybox} imports the fancybox package.

fancybox allows us to create decorative boxes around text or images.

Boxes can have shadows, double lines, or rounded corners.

They can be used for highlighting important sections, notes, or headings.

This makes the content visually appealing.

Click the Green Typeset button to run the code.

Select XeLaTeX from the drop down

Let us run the code to see the output.
Uncomment line 31 Uncomment line 31.
Highlight:

line 31

The command \shadowbox creates a box with a shadow effect around the given text
Click the green Typeset button and show the output Let’s run the code.

Here is the output.

Uncomment the line 35 Uncomment line 35.
Highlight:

line 35

The command \doublebox creates a double lined box around the given text.
Click the green Typeset button and show the output Let’s run the code.

The output shows a double lined box around the text.

Highlight:

line 40

The command \ovalbox creates an oval box around the given text
Uncomment line 40

Click the green Typeset button and show the output

Uncomment line 40.

Let us run the code

Here is the output

Uncomment line 44

Click the green Typeset button and show the output

Uncomment line 44.

Let us run the code.

Here is the output.

Highlight:

line 44

The command \Ovalbox creates a thick oval box around the given text.

Observe the capital O in the command.

Comment line 46

Uncomment line 55

Click the green Typeset button and show the output

Point to the paragraph text.

Now, let us add a minipage about fancybox.

Comment line 46

Uncomment line 55

Let us run the code

Output shows a paragraph text.

Let us add a box around this paragraph.

Uncomment lines 48 and 52 Uncomment lines 48 and 52.
Highlight:

lines 48 to 52

The \fbox command draws a box around the contents of the minipage.

This command allows us to frame multiple paragraphs.

Run the code Let us run the code.

The output now shows a box around the mini paragraph text.

Comment line 55

Uncomment line 61

Comment line 55.

Uncomment line 61.

Highlight:

lines 57 to 59

Observe the $ inside \fbox command.

$...$ is used to show the equation in math mode.

The \fbox command creates a box around the equation.

Click the green Typeset button and show the output Let us run the code.

Here, only a single line of the equation can be enclosed in a frame.

Comment line 61

Uncomment line 74

Comment line 61

Uncomment line 74

Highlight:

lines 63 to 71

\begin{equation}

\fbox{$

\begin{array}{rcl}

a&=&b+c\\

=&x+y\\

=&z

\end{array}

$}

\end{equation

The command \fbox is used with an array environment.

This creates a box around multiple equations.

So a multiple lined equation is framed using an array inside the \fbox command .

Click the green Typeset button and show the output Let us run the code.

Here is the output.

A frame is added around the multiple lined equation.

Slide 6

Summary

In this tutorial, we have learnt to

  • Use the fancybox package
  • Add a frame using shadowbox, doublebox, ovalbox, and fbox
  • Frame the text paragraphs
  • Add a frame to the single and multiline equations
With this we come to the end of this tutorial.

Let us summarise.

Slide 7

Assignment

As an Assignment

As an Assignment,

Create a section called Algebra Practice

  • Use \shadowbox for headings like Solve the following equations
  • Use \ovalbox for short tips or reminders
Slide 8

Thank you

Thank you for joining

Contributors and Content Editors

Ketkinaina