Moed Katan 3:4-3:7
Moed Katan3: 4
אֵין כּוֹתְבִין שְׁטָרֵי חוֹב בַּמּוֹעֵד. וְאִם אֵינוֹ מַאֲמִינוֹ, אוֹ שֶׁאֵין לוֹ מַה יֹּאכַל — הֲרֵי זֶה יִכְתֹּב.  אֵין כּוֹתְבִין סְפָרִים, תְּפִלִּין וּמְזוּזוֹת בַּמּוֹעֵד, וְאֵין מַגִּיהִין אוֹת אַחַת, אֲפִלּוּ בְסֵפֶר (עֶזְרָא) [הָעֲזָרָה]. רַבִּי יְהוּדָה אוֹמֵר: כּוֹתֵב אָדָם תְּפִלִּין וּמְזוּזוֹת לְעַצְמוֹ, וְטֹוֶה עַל יְרֵכוֹ תְּכֵלֶת לְצִיצִיתוֹ.
We may not write loan contracts during [Chol] HaMoed. However, if he does not trust him, or if he has nothing to eat, then he may write.  We may not write Books [of Scripture], nor tefillin, nor mezuzos during [Chol] HaMoed. We may not correct a single letter even in the [Torah] scroll of the Temple court. R' Yehudah says: A person may write tefillin or mezuzos for his personal use; and he may spin the blue thread for his tzitzis, on his thigh.
Moed Katan3: 5
הַקּוֹבֵר אֶת מֵתוֹ שְׁלֹשָׁה יָמִים קֹדֶם לָרֶגֶל — בָּטְלָה הֵימֶנּוּ גְּזֵרַת שִׁבְעָה. שְׁמוֹנָה — בָּטְלָה הֵימֶנּוּ גְּזֵרַת שְׁלֹשִׁים, מִפְּנֵי שֶׁאָמְרוּ: שַׁבָּת עוֹלָה וְאֵינָהּ מַפְסֶקֶת, רְגָלִים מַפְסִיקִין וְאֵינָן עוֹלִין.
He who buries his dead [relative] three days before a festival has the edict of seven [days of mourning] annulled. [He who buries his dead relative] eight [days before a festival] has the edict of thirty [days of mourning] annulled. [This is so] because they said: Sabbath is included [in the period of mourning] but does not interrupt [it]. Festivals [however] interrupt but are not included.
Moed Katan3: 6
רַבִּי אֱלִיעֶזֶר אוֹמֵר: מִשֶּׁחָרַב בֵּית הַמִּקְדָּשׁ — עֲצֶרֶת כַּשַּׁבָּת.  רַבָּן גַּמְלִיאֵל אוֹמֵר: רֹאשׁ הַשָּׁנָה וְיוֹם הַכִּפּוּרִים — כָּרְגָלִים.  וַחֲכָמִים אוֹמְרִים: לֹא כְדִבְרֵי זֶה וְלֹא כְדִבְרֵי זֶה; אֶלָּא עֲצֶרֶת — כָּרְגָלִים, רֹאשׁ הַשָּׁנָה וְיוֹם הַכִּפּוּרִים — כַּשַּׁבָּת.
R' Eliezer says: From the time the Temple was destroyed Shavuos is like the Sabbath.  Rabban Gamliel says: Rosh Hashanah and Yom Kippur are like the festivals.  The Sages, however, do not agree with either of the two. Rather, Shavuos is like the festivals; Rosh Hashanah and Yom Kippur are like the Sabbath.
Moed Katan3: 7
אֵין קוֹרְעִין, וְלֹא חוֹלְצִין, וְאֵין מַבְרִין — אֶלָּא קְרוֹבָיו שֶׁל מֵת. וְאֵין מַבְרִין אֶלָּא עַל מִטָּה זְקוּפָה.  אֵין מוֹלִיכִין לְבֵית הָאֵבֶל לֹא בְטַבְלָא, וְלֹא בְאִסְקוּטְלָא, וְלֹא בְקָנוֹן — אֶלָּא בְסַלִּים.  וְאֵין אוֹמְרִים בִּרְכַּת אֲבֵלִים בַּמּוֹעֵד, אֲבָל עוֹמְדִין בַּשּׁוּרָה וּמְנַחֲמִין וּפוֹטְרִין אֶת הָרַבִּים.
Garments may not be rent, shoulders may not be bared, and the mourner's meal may not be served, except by relatives of the deceased. The mourner's meal is only served on a set-up bed.  We may not bring [food] to the house of mourning neither on a tray, nor on a salver, nor in a decorative basket, but only in [plain] baskets.  We do not say the mourner's blessing during [Chol] HaMoed, but we stand in rows and offer consolation. They then dismiss the public.